Skip to content

CodeIntelligenceTesting/llvm-toolchain

Repository files navigation

Building our LLVM Toolchain

In order to support as many different platforms as possible with our toolchain, we use a two-stage bootstrap build on CentOS 7.

We use the LLVM Docker builder provided in build/docker/builders.

Run the following command from this directory in order to build the toolchain. This uses the GCC 7 software collection, because GCC 5 cannot build current LLVM.

docker run -e LLVM_RELEASE=11.0.0 -it \
           --mount type=bind,source=$(pwd),target=/llvmbuild \
           --workdir /llvmbuild \
           registry.gitlab.com/code-intelligence/core/builders/llvm:latest \
           scl enable devtoolset-7 /llvmbuild/build_llvm.sh

Currently we are on Release 11.0.0.

See the comments in build_llvm.sh for how to modify the build.