We used below to install llvm 3.9:
brew install --force-bottle llvm@3.9
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?
$ brew search llvm
==> Searching local taps...
==> Searching taps on GitHub...
llvm
llvm@3.7
llvm@3.9
llvm@4
llvm@5 <------
You can thus 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