什么版本的gcc,llvm和clang在XCode 4中?

时间:2022-03-31 02:23:09

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 Developer Program中的预览。

4 个解决方案

#1


7  

Xcode 4 GM

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)

#2


1  

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.

您可以在Xcode 3中使用更高版本的gcc版本。我做过一次,但是我不完全记得如何;我使用了一个我自己从svn trunk创建的gcc。这里有帖子可能对你有帮助。

#3


1  

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

#4


1  

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

#1


7  

Xcode 4 GM

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)

#2


1  

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.

您可以在Xcode 3中使用更高版本的gcc版本。我做过一次,但是我不完全记得如何;我使用了一个我自己从svn trunk创建的gcc。这里有帖子可能对你有帮助。

#3


1  

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

#4


1  

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