Re:LLVM 6.0.0 Release
by BozeWolf on Thursday March 08, 2018 @12:24PM
(#16545903)
Can’t you just install a more up to date compiler with brew? I don’t know if signing binaries works though.
[ Parent
| on HN ]
Brew's approach to compilers adds tremendous friction.
Brew doesn't download a binary, it builds the compilers (both gcc and clang) and installs them but doesn't make bin/ links.
It's because of this that our build process (I'm not OP BTW) builds with all of brew gcc, brew clang and xcode (thank goodness for xcodebuild at least, so I can do this all from a Makefile). CMake is really helpful here.
Homebrew has bottles so you don't have to do compilation on your machine–you just download a precompiled version.
Yes, but GCC and clang are not provided that way, and, as I mentioned, not linked into /usr/local/bin. I understand why they don't do the latter (it could confuse the unsuspecting user) but it does add friction.
> but GCC and clang are not provided that way
What? On my machine both are available as bottles:
$ brew info gcc | head -n 1
gcc: stable 7.3.0 (bottled), HEAD
$ brew info llvm | head -n 1
llvm: stable 5.0.1 (bottled), HEAD [keg-only]Huh, interesting; our site config seems to require building so I had assumed that was the case!
Make sure that you install (or reinstall after a big macOS upgrade) the XCode command line tools. If they are not present, homebrew falls back to compiling GCC from source.