XCode 4 中的 gcc、llvm 和 clang 是什么版本?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4390833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What versions of gcc, llvm and clang are in XCode 4?
提问by leedm777
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 preliminary support for C++0x features, or they have a relatively painless method of installing/upgrading the compiler.
我们想开始使用大多数编译器中可用的一些 C++0x 功能。但是 XCode 3 有点让我们望而却步,因为它只提供 GCC 4.2 和 LLVM 1.5。我们需要支持的所有其他平台要么已经具有初步支持 C++0x 功能的编译器,要么它们具有安装/升级编译器的相对轻松的方法。
An XCode 4 preview is available, but only to those in the Mac or iOS Developer Program.
可以使用 XCode 4 预览版,但仅适用于 Mac 或 iOS 开发者计划中的用户。
采纳答案by Trung Lê
Xcode 4 GM
Xcode 4 通用
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)
回答by Andy Dent
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
如果有人稍后再看这个,这里是 Clang 中 C++0x 的规范页面。http://clang.llvm.org/cxx_status.html
回答by lucas clemente
回答by Jean-Denis Muys
You can also build and run later versions of clang within Xcode. See for example:
您还可以在 Xcode 中构建和运行更高版本的 clang。见例如:
http://shapeof.com/archives/2010/01/using_the_latest_llvm_with_xcode.html
http://shapeof.com/archives/2010/01/using_the_latest_llvm_with_xcode.html