Fisher Coder
Fisher Coder

Reputation: 3576

How to install Clang 9 on 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

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!

Upvotes: 2

Views: 1757

Answers (1)

Fisher Coder
Fisher Coder

Reputation: 3576

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.

Upvotes: 2

Related Questions