"clang"和"clang"之间有什么区别和"Apple clang"? [英] What is the difference between "clang" and "Apple clang"?

查看:1328
本文介绍了"clang"和"clang"之间有什么区别和"Apple clang"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚升级到clang随附的OS X 10.8.2. clang -v的输出是:

I just upgraded to OS X 10.8.2, which comes with clang. The output of clang -v is:

Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

在macports上,有几种不同版本的clang可用(port search clang):

On macports, there are several different versions of clang available (port search clang):

clang @2.9 (lang)
    C, C++, Objective C and Objective C++ compiler
clang-2.9 @2.9 (lang)
    C, C++, Objective C and Objective C++ compiler
clang-3.0 @3.0 (lang)
    C, C++, Objective C and Objective C++ compiler
clang-3.1 @3.1 (lang)
    C, C++, Objective C and Objective C++ compiler
clang-3.2 @3.2-r164372 (lang)
    C, C++, Objective C and Objective C++ compiler

OS X附带的"Apple clang 4.1"是否与macports中的clang-3.1相同(几乎或完全相同)?

Is the "Apple clang 4.1" that comes with OS X the same (nearly or exactly) as clang-3.1 from macports?

另外,3.2与3.1相比有什么不同?

Also, what is different in 3.2 as compared to 3.1?

推荐答案

LLVM 3.1svn表示它是在3.1发布之后但在3.2(尚未发布)之前的某个时间分支的. Apple无法使用LLVM/Clang的发行版本.

LLVM 3.1svn means that it was branched sometime after 3.1 was released but before 3.2 (which has not been released yet). Apple doesn't work off of released versions of LLVM/Clang.

从clang 3.1到3.2(以及将来的版本)的更改可以在中找到发行说明.

The changes from clang 3.1 to 3.2 (as well as future versions) can be found in the Release Notes.

请注意,由于尚未发布3.2,因此发行说明将不会包含更改的完整列表.

Note that since 3.2 has not been released, the release notes will not contain a complete list of the changes.

这篇关于"clang"和"clang"之间有什么区别和"Apple clang"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆