Clang and the default compiler in OS X Lion

人走茶凉 提交于 2019-11-28 06:37:32

gcc is symlinked to llvm-gcc-4.2 on Lion.

lrwxr-xr-x 1 root wheel 12 Jul 21 20:51 /usr/bin/gcc -> llvm-gcc-4.2

lrwxr-xr-x 1 root wheel 12 Jul 21 20:51 /usr/bin/g++ -> llvm-g++-4.2

You can probably remove those environment variables without much harm.

The default compiler on Lion is now llvm-gcc-4.2, although the standard selection (gcc-4.2, llvm-gcc-4.2, clang) remains unchanged from Snow Leopard. Try reading Using the right compiler.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!