[cfe-dev] Clang with Xcode 3.2.2?
Ted Kremenek
kremenek at apple.com
Tue Aug 3 13:40:44 PDT 2010
clang++ is just a symlink to clang, so that's easy to add.
Teaching Xcode 3.2.2 to use clang++ is not possible since there is no way to tell it to use clang++ for linking C++ code, although it can be done with Xcode 3.2.3 by modifying the compiler .xcspec file. The hackiest way to get it working is to copy the .xcspec file from Xcode 4 to Xcode 3.2.3:
$ cp '/Xcode4/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/Clang LLVM 1.0.xcplugin/Contents/Resources/Clang LLVM 1.0.xcspec' '/Developer/Library/Xcode/Plug-ins/Clang LLVM 1.0.xcplugin/Contents/Resources/Clang LLVM 1.0.xcspec'
I recommend doing a backup of that file before you do this.
On Aug 3, 2010, at 1:27 PM, Alexander MacDonald wrote:
> hmm, but there's no clang++ provided with xcode 3.2.2 and looking into the clang xcplugin bundle it makes no mention of c++ support, maybe I need to update to the 4.0 beta, but I'd like to avoid that if possible...
>
> On Aug 3, 2010, at 1:22 PM, Ted Kremenek wrote:
>
>> Hi Alex,
>>
>> You can replace /Developer/usr/bin/clang with a symlink to the clang you have built.
>>
>> Cheers,
>> Ted
>>
>> On Aug 3, 2010, at 1:09 PM, Alexander MacDonald wrote:
>>
>>> I've been playing with clang on the commandline and I've had some success with it but I'd really like to try it out with some larger projects that are built with XCode. Should I just replace the clang binary that xcode 3.2.2 ships with, or does someone have an updated version of the xcplugin bundle that I can use?
>>>
>>>
>>> Thanks,
>>> Alex Macdonald
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>
More information about the cfe-dev
mailing list