Just one random thing: while the package call itself as llvm-gcc, the llvm bits aren't enabled as it's not included. I spent some time trying to figure out how Apple does things, and here's what I've got:
Referring to the llvm-gcc available at
opensource.apple.com/tarballs/llvmgcc42, Apple first build llvmCore, which is included into the package. It's an old and customized version, but there's no easy way to update it to a newer version.
The second step is to build llvm-gcc using --enable-llvm=/llvm/obj/path. Note that you cannot use the object dir of cmake, which is frustrating.
Apple's llvm-gcc used to build the applications in Xcode has this hardcoded:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2 -v
Using built-in specs.
Target: arm-apple-darwin10
Configured with: /private/var/tmp/llvmgcc42_Embedded/llvmgcc42_Embedded-2410.2~115/src/configure --enable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --disable-tls --build=i686-apple-darwin10 --enable-llvm=/private/var/tmp/llvmgcc42_Embedded/llvmgcc42_Embedded-2410.2~115/dst-llvmCore/Developer/usr/local --program-prefix=arm-apple-darwin10- --host=x86_64-apple-darwin10 --target=arm-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1 --with-build-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.Internal.sdk
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2410.2.00)This mainly mean that it's almost impossible to tell on what is exactly based, and also show that this version is more recent than the latest available in their site as source code. They also seem to make use of iPhoneOS Internals, which isn't being distributed, but it should be possible to replace it using reverse tools like classdump to find the headers or recycle them from the mac SDK.