How to intall Clang 9 on Mac?

女生的网名这么多〃 提交于 2019-12-24 10:25:32

问题


Here's what I have on my Mac:

clang --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

my app needs to be compiled with clang version 9, how can I install it on my Mac?

I went to LLVM official site, but I don't see Clang 9 there.

Any help is greatly appreciated!


回答1:


I downloaded Xcode 9.2 and then did xcode-select -s /Applications/Xcode.app/Contents/Developer and then my clang --version shows Apple LLVM version 9.0.0 (clang-900.0.39.2), which is what I want. Hope this could help others who encounter the same or similar issue.



来源:https://stackoverflow.com/questions/55483595/how-to-intall-clang-9-on-mac

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