如何在Mac上安装Clang 9? [英] How to intall Clang 9 on Mac?

查看:1344
本文介绍了如何在Mac上安装Clang 9?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在Mac上拥有的东西:

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

我的应用程序需要使用clang版本9进行编译,如何在Mac上安装它?

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

我去了 LLVM官方网站,但是在那儿看不到Clang 9.

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

任何帮助将不胜感激!

推荐答案

我下载了Xcode 9.2,然后下载了xcode-select -s /Applications/Xcode.app/Contents/Developer,然后我的clang --version显示了Apple LLVM version 9.0.0 (clang-900.0.39.2),这正是我想要的. 希望这可以帮助遇到相同或相似问题的其他人.

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.

这篇关于如何在Mac上安装Clang 9?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆