How can I set up Xcode up to use the clang distributed by llvm.org instead of the one shipped by Apple?
If I download the clang binaries and install to /usr/local
and then set my compiler to Other... -> /usr/local/bin/clang
in Xcode, then I get errors of the form:
Unsupported compiler '/usr/local/bin/clang' selected for architecture 'x86_64'
Unable to determine concrete GCC compiler for file ...of type sourcecode.c.c.
UPDATE: I've found a way to make this work by symlinking /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr
to the clang+llvm-3.4-x86_64-apple-darwin10.9
root directory, but it would be far better it there was a way to set an alternative compiler for Xcode without modifying the Xcode directory tree.