From 8a86887ba3dcf59ddfd1d26bd2af1ac9c6bed76a Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 4 Jan 2012 19:47:22 +0000 Subject: 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 --- include/llvm/Config/llvm-config.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/llvm/Config/llvm-config.h.in') diff --git a/include/llvm/Config/llvm-config.h.in b/include/llvm/Config/llvm-config.h.in index 30a935bf9c..a06162f92a 100644 --- a/include/llvm/Config/llvm-config.h.in +++ b/include/llvm/Config/llvm-config.h.in @@ -40,6 +40,9 @@ /* Has gcc/MSVC atomic intrinsics */ #undef LLVM_HAS_ATOMICS +/* Host triple LLVM will run on */ +#undef LLVM_HOST_TRIPLE + /* Installation directory for include files */ #undef LLVM_INCLUDEDIR -- cgit v1.2.3