Building LLVM plugins with Bazel

This is a mirror of the Substack article Building LLVM plugins with Bazel The most recent version is there. One of the premises of Bazel is to provide reproducible, hermetic builds, thus you shouldn’t depend on whatever is installed on the host OS and all the dependencies typically managed by Bazel directly. However, if you want to build plugins for LLVM (or any other project really), then you…