[cfe-dev] Odd piece of Clang 2.1 behaviour

Chris Lattner clattner at apple.com
Thu Oct 13 13:10:29 PDT 2011


On Oct 12, 2011, at 4:08 AM, Dallman, John wrote:

>> 
>> /Developer/usr/bin/gcc --version
>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
>> build 5658) (LLVM build 2336.1.00)
> 
> llvm-gcc is the default gcc at Xcode 4.1, but that also has a non-LLVM
> gcc at /Developer/usr/bin/gcc-4.2. The information I have is that isn't
> present at Xcode 4.2.

Correct.  Xcode 4.1 includes Clang, llvm-gcc-4.2 and gcc-4.2.

Xcode 4.2 does not include gcc-4.2, so it includes clang and llvm-gcc-4.2.  For maximum compatibility and least disruption, "gcc" is a symlink to llvm-gcc in Xcode 4.2.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111013/bd93a7a6/attachment.html>


More information about the cfe-dev mailing list