This is right now what shows on my machine:
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
which clang
/usr/bin/clang
But my app requires me to use Clang 9, how can I install it on my OS X?
I've tried to use
brew install llvm@9
But no luck and here's the output:
brew install llvm@9
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and caskroom/versions).
==> Updated Formulae
glib-networking ✔ wget ✔ asdf atomist-cli cake cgal confluent-oss dhall dhall-json embulk get_iplayer gocr hadolint jenkins juju logtalk mps-youtube sdl ssllabs-scan taskell xmake
Error: No available formula with the name "llvm@9"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
I probably should not try that command in the first place, since what I wanted to install is Clang 9, not LLVM. Reading this post helped me understand what is LLVM.