【问题标题】:What is the difference between "clang" and "Apple clang"?"clang" 和 "Apple clang" 和有什么不一样?
【发布时间】:2012-09-21 20:35:02
【问题描述】:

我刚刚升级到带有 clang 的 OS X 10.8.2。 clang -v 的输出为:

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):

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 相同(几乎或完全相同)?

另外,3.2 和 3.1 有什么不同?

【问题讨论】:

    标签: macos clang macports


    【解决方案1】:

    LLVM 3.1svn 意味着它是在 3.1 发布之后但在 3.2 之前的某个时间分支的(尚未发布)。 Apple 无法使用已发布的 LLVM/Clang 版本。

    clang 3.1 到 3.2(以及未来版本)的变化可以在Release Notes 中找到。

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

    【讨论】:

    • 如何回答这个问题?有关 Apple 如何“工作”的信息在哪里,有什么区别?
    猜你喜欢
    • 2012-12-01
    • 2013-08-06
    • 1970-01-01
    • 2011-07-15
    • 2015-03-21
    • 2014-09-11
    • 2012-07-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多