Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the LLVM bootstrap and use Hombrew installed LLVM-12. (carbon-…
…language#551) Now that LLVM 12 has been released we no longer have any need to bootstrap LLVM to get the desired featureset. LLVM 12 is available widely, including in Homebrew across multiple platforms and in the GitHub action runners. Sadly, the Linux distribution builds of LLVM-12 are largely broken and not as useful for us. The Homebrew Linux install was also broken originally, but I've worked extensively with the Homebrew folks to get the Linux install into a really good shape. It should now work reliably. There are two primary bugs in Linux LLVM packages that need to be fixed before we can just use them: - https://bugs.llvm.org/show_bug.cgi?id=43604 - https://bugs.llvm.org/show_bug.cgi?id=46321 Once those are addressed and point releases with the fixes widely available we can further simplify things. Even with the need to use Homebrew installs, using the released LLVM has the extra advantage of making it easy to properly support Darwin ARM and I've added that configuration so that I can test things there. Last but not least, this will significantly shrink our build outputs which should allow building much more in continuous integration on GitHub actions without exceeding the action cache size limits. I've even added several tweaks and adjustments to the compile and build flags to improve the build performance and reduce the build output size. Once this is landed and stable, we can consider adding the refactoring tooling back to our CI. One of the biggest downsides of this path is that our CI has to download and install the LLVM toolchain from Homebrew on each run. This is pretty slow (takes a couple of minutes). But it is a fixed overhead -- it won't get worse over time. Eventually, we can either look at a much fancier action configuration to avoid this or hopefully the Debian packages will get updated and we can move back to those. The bootstrapping has served us long enough at this point. We can resurrect it if we ever find a compelling reason for breaking off of the latest LLVM release as our host toolchain. Co-authored-by: Jon Meow <[email protected]>
- Loading branch information