开发者

What versions of gcc, llvm and clang are in XCode 4?

开发者 https://www.devze.com 2023-01-29 07:17 出处:网络
For some reason, this information is difficult to come by. We\'d like to start using some of the C++0x features that are available in most compilers.But we are held back a bit by XCode 3, since it on

For some reason, this information is difficult to come by.

We'd like to start using some of the C++0x features that are available in most compilers. But we are held back a bit by XCode 3, since it only provides GCC 4.2 and LLVM 1.5. All of the other platforms we need to support either already have compilers with pr开发者_如何学Goeliminary support for C++0x features, or they have a relatively painless method of installing/upgrading the compiler.

An XCode 4 preview is available, but only to those in the Mac or iOS Developer Program.


Xcode 4 GM

gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
Apple clang version 2.0 (tags/Apple/clang-134) (based on LLVM 2.9svn)


You can use a later gcc version in Xcode 3. I did it once, however I don't fully remember how; I used a gcc I built myself from the svn trunk. There is post here which might help you.


You can also build and run later versions of clang within Xcode. See for example:

http://shapeof.com/archives/2010/01/using_the_latest_llvm_with_xcode.html


In case anyone is looking at this much later, here is the canonical page for C++0x in Clang. http://clang.llvm.org/cxx_status.html

0

精彩评论

暂无评论...
验证码 换一张
取 消