[cfe-dev] Odd piece of Clang 2.1 behaviour

Charles Davis cdavis at mymail.mines.edu
Wed Oct 12 11:08:48 PDT 2011


On Oct 12, 2011, at 5:10 AM, Jean-Daniel Dupas wrote:

> 
> Le 12 oct. 2011 à 13:08, Dallman, John a écrit :
> 
>> Jean-Daniel Dupas wrote:
>> 
>>> The problem is that I don't think Apple support new features in GCC.
>> 
>> This is entirely survivable. The software has to be portable across a
>> lot of platforms.
>> 
>>> Shouldn't be required, as this [-stdlib=libstdc++] is the default.
>> 
>> Making it explicit simply ensures it gets into documentation, and that
>> we don't get surprised when the default changes.
>> 
>>> /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.
>> 
> 
> OK. No, there is no gcc-4.2 binary in Xcode 4.2.
Yeah there is.
$ xcodebuild -version
Xcode 4.2
Build version 4D199
$ gcc-4.2 --version
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)

It's just not installed into /Developer (because it isn't used anymore for Xcode itself).
$ /Developer/usr/bin/gcc-4.2 --version
-bash: /Developer/usr/bin/gcc-4.2: No such file or directory

Chip





More information about the cfe-dev mailing list