Shital Shah
Shital Shah

Reputation: 68708

How to install llvm 5.0.0 for Mac using brew

We used below to install llvm 3.9:

brew install --force-bottle [email protected]

This also installed clang at following location:

/usr/local/opt/llvm\@3.9/bin/clang

What would be the command to install llvm 5.0 and the corresponding location for clang?

Upvotes: 3

Views: 3512

Answers (1)

bfontaine
bfontaine

Reputation: 19810

[updated] On September 24, 2019, the llvm@5 formula was removed due to low usage.

You can still find the original code in the git history. You can download it and install it:

curl https://raw.githubusercontent.com/Homebrew/homebrew-core/2c9d4ec833a4f4087e0a590c505b89b1b43e1d98/Formula/llvm%405.rb > [email protected]
brew install ./[email protected]

Original answer:

$ brew search llvm
==> Searching local taps...
==> Searching taps on GitHub...
llvm
[email protected]
[email protected]
llvm@4
llvm@5   <------

You can use brew install llvm@5 (add --force if needed). clang will be in the same location except that 3.9 is replaced with 5:

/usr/local/opt/llvm@5/bin/clang

Upvotes: 7

Related Questions