尝试诊断工作开发笔记本电脑...什么版本的 Clang 和 GCC 是 OSX 10.10 Yosemite 的标准配置?
这就是我在我的 Mavericks 机器上拥有的东西,它会在启动时响应我的家用 iMac。
which clang
/usr/bin/clang
which gcc
/usr/bin/gcc
clang --version
Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
最佳答案
在使用当前 XCode (6.1.1 (6A2008a)) 的 Mac OS X 10.10.1 上,我得到:
$ /usr/bin/clang --version
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
$ /usr/bin/gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
$
换句话说,“GCC”不再是真正的 GNU gcc
,而是 clang
。
关于macos - 操作系统 X 10.10。 Yosemite Clang 和 GCC 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27308323/