[cfe-commits] [patch] Don't use llvm::sys::getHostTriple
espindola at google.com
Mon Jun 28 21:30:49 PDT 2010
This is the last patch I need to build a native clang that targets ARMv7.
The problem was that lvm::sys::getHostTriple would try to guess the
host, and its logic is incomplete. llvm::sys::getHostTriple is correct
for things like a jit, but for a compiler it should be possible to set
host, build and target at build time.
The correct fix would be to split the variable for host build and
target, but this at least disables the host guessing.
Not sure how to write a test for this, but now if I build clang with
--host=armv7-unknown-linux-gnueabi I can just run "clang -c" and get
armv7 code (movw + movt for example).
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 731 bytes
Desc: not available
More information about the cfe-commits