macos - 操作系统 X 10.10。 Yosemite Clang 和 GCC 版本

标签 macos gcc clang osx-yosemite

尝试诊断工作开发笔记本电脑...什么版本的 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/

相关文章:

C++ 运算符重载和关联的命名空间

java - 如何将Spotlight for Help插入Java中的本地化macOS应用程序中?

c++ - unique_ptr 住在哪里?

Cortex R5 - 启动代码

linux - 编译 libgcc xgcc 错误

ios - Xcode 8.3 中奇怪的 Clang 行为

c++ - 使用带有 shared_ptr 的 Clang 线程安全分析

python - 在 mac 上为 python 安装 Gtk 3

mysql - 渲染 View 时 Rails 连接到错误的端口

c++ - make clean 结果没有具有特定 makefile 名称的目标