[llvm-commits] [llvm] r147542 - in /llvm/trunk: autoconf/configure.ac cmake/config-ix.cmake configure include/llvm/Config/config.h.cmake include/llvm/Config/config.h.in include/llvm/Config/llvm-config.h.cmake include/llvm/Config/llvm-config.h.in include/llvm/Support/Host.h lib/Support/CommandLine.cpp lib/Support/TargetRegistry.cpp lib/Support/Unix/Host.inc lib/Support/Windows/Host.inc projects/sample/autoconf/configure.ac projects/sample/configure

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jan 4 12:39:20 PST 2012


On Wed, Jan 04, 2012 at 07:47:23PM -0000, Sebastian Pop wrote:
> 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.

I think this is wrong. Can such changes please discussed before?
Strictly speaking, running e.g. i386-linux on x86_64-netbsd is a
cross-compiler. It can never the less work. If the only reason for this
complications is the test suite, you should teach it to skip JIT for the
cross-compilation case.

Joerg



More information about the llvm-commits mailing list