[LLVMdev] xcodebuild and LLVM
Devang Patel
dpatel at apple.com
Thu Sep 4 10:26:18 PDT 2008
On Sep 3, 2008, at 5:58 PM, Mike Stump wrote:
> On Sep 3, 2008, at 3:12 PM, John Criswell wrote:
>> Is there a way to convince xcodebuild to build bitcode files for LLVM
>> for an arbitrary Xcode project? So far, I've been able to get
>> xcodebuild to use LLVM by installing XCode 3.1 and using CC="llvm-
>> gcc"
>> on the command line. I've also managed to get LLVM bitcode generates
>> for intermediate files by using "CC="lvm-gcc -emit-llvm"; however,
>> this
>> gives an error during linking stating that ld does not understand the
>> -emit-llvm option.
>
> In the LINK_SPEC just add %{emit-llvm: } before %{e*} or, if that
> doesn't work, try %<emit-llvm. One of those should work.
Just to clarify, Mike is talking about modifying llvm-gcc here.
-
Devang
More information about the llvm-dev
mailing list