[LLVMdev] Replacing llvm-gcc in Xcode 3.1.1 with svn version

Tatu Vaajalahti tatuvaaj at mac.com
Tue Oct 21 11:07:37 PDT 2008

On 21.10.2008, at 20.06, Chris Lattner wrote:

> On Oct 21, 2008, at 6:07 AM, Tatu Vaajalahti wrote:
>> Hello all,
>> I have replaced the llvm-gcc shipped with the Xcode by the latest
>> version and I was wondering if I have missed something... (everything
>> *seems* to work).
>> Here's what I did:

A couple of minor points I noticed:
You'll also want to edit /Developer/Library/Xcode/Plug-ins/llvm-gcc  
4.2.xcplugin/Contents/Resources/llvmgcc42.xcspec and comment out the

     OptionsForSDKPackages = {
         sdk_package_flags = "-isysroot $(SDKROOT)";

because if you have llvm-gcc selected as a compiler in Xcode and you  
do scan-build for your project clang won't accept more than one - 
isysroot option and will fail the scan-build.

Naturally you'll also want to add /Developer/usr/bin and /Developer/ 
usr/local/bin to your path :)

Tatu Vaajalahti
Tampere, Finland

More information about the llvm-dev mailing list