diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-01-04 19:47:22 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-01-04 19:47:22 +0000 |
commit | 0f357d6c2240393b53d30cf79c2cd583192e5ed9 (patch) | |
tree | 642c100b83b81b7f83bfe293c75df67f1ebff3e3 /llvm/lib/Support/CommandLine.cpp | |
parent | aac3e06bf73214a1f44dd40e98c9930b759ded38 (diff) | |
download | bcm5719-llvm-0f357d6c2240393b53d30cf79c2cd583192e5ed9.tar.gz bcm5719-llvm-0f357d6c2240393b53d30cf79c2cd583192e5ed9.zip |
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.
llvm-svn: 147542
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index ce9344954bc..9e8207baa88 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1373,6 +1373,7 @@ public: << " Built " << __DATE__ << " (" << __TIME__ << ").\n" #endif << " Default target: " << sys::getDefaultTargetTriple() << '\n' + << " Host: " << sys::getHostTriple() << '\n' << " Host CPU: " << CPU << '\n'; } void operator=(bool OptionWasSpecified) { |