summaryrefslogtreecommitdiff
path: root/m4/ghc_llvm_target.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ghc_llvm_target.m4')
-rw-r--r--m4/ghc_llvm_target.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/ghc_llvm_target.m4 b/m4/ghc_llvm_target.m4
index abb10d963e..dfb16f78da 100644
--- a/m4/ghc_llvm_target.m4
+++ b/m4/ghc_llvm_target.m4
@@ -50,5 +50,10 @@ AC_DEFUN([GHC_LLVM_TARGET], [
# require it.
AC_DEFUN([GHC_LLVM_TARGET_SET_VAR], [
AC_REQUIRE([FPTOOLS_SET_PLATFORMS_VARS])
- GHC_LLVM_TARGET([$target],[$target_cpu],[$target_vendor],[$target_os],[LlvmTarget])
+ if test "$bootstrap_llvm_target" != ""
+ then
+ LlvmTarget=$bootstrap_llvm_target
+ else
+ GHC_LLVM_TARGET([$target],[$target_cpu],[$target_vendor],[$target_os],[LlvmTarget])
+ fi
])