【发布时间】:2017-09-04 08:15:50
【问题描述】:
我对我的 Mac 上安装的 gcc 版本感到困惑,它安装了 OS X Yosemite (10.10.5)。我也安装了 Xcode v6.3.1。
输入以下命令会显示以下信息:
gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
which gcc
/usr/bin/gcc
which clang
/usr/bin/clang
据我所知,gcc 不是 clang 的别名。
谁能告诉我这是什么意思?
【问题讨论】:
标签: macos gcc clang llvm osx-yosemite