12 curl -L https://github.com/llvm/llvm-project/archive/$LLVM.tar.gz | \
13 tar xzf - --strip-components=1
18 # For whatever reason the default set of include paths for clang is different
19 # than that of gcc. As a result we need to manually include our sysroot's
20 # include path, /rustroot/include, to clang's default include path.
21 INC="/rustroot/include:/usr/include"
25 -DCMAKE_C_COMPILER=/rustroot/bin/gcc \
26 -DCMAKE_CXX_COMPILER=/rustroot/bin/g++ \
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_INSTALL_PREFIX=/rustroot \
29 -DLLVM_TARGETS_TO_BUILD=X86 \
30 -DLLVM_ENABLE_PROJECTS="clang;lld" \
31 -DC_INCLUDE_DIRS="$INC"
34 hide_output make install