[cfe-commits] [patch] Don't use llvm::sys::getHostTriple
Rafael Espindola
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).
Cheers,
--
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-target.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100629/d165578d/attachment.bin>
More information about the cfe-commits
mailing list