aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-01-04 19:47:22 +0000
committerSebastian Pop <spop@codeaurora.org>2012-01-04 19:47:22 +0000
commit8a86887ba3dcf59ddfd1d26bd2af1ac9c6bed76a (patch)
treed063101aa566588fde106548beed730b9023ced8 /configure
parentb0e7af779732c5ff3c054c837a4b04ad6089d0ac (diff)
downloadexternal_llvm-8a86887ba3dcf59ddfd1d26bd2af1ac9c6bed76a.zip
external_llvm-8a86887ba3dcf59ddfd1d26bd2af1ac9c6bed76a.tar.gz
external_llvm-8a86887ba3dcf59ddfd1d26bd2af1ac9c6bed76a.tar.bz2
use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT
Get back getHostTriple. For JIT compilation, use the host triple instead of the default target: this fixes some JIT testcases that used to fail when the compiler has been configured as a cross compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index d0c3beb..5ea1319 100755
--- a/configure
+++ b/configure
@@ -20913,6 +20913,11 @@ _ACEOF
cat >>confdefs.h <<_ACEOF
+#define LLVM_HOST_TRIPLE "$host"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
_ACEOF