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?
[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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With