Libclang_rt.builtins.a is not being built

How can I build the file libclang_rt.builtins.a?

I have cloned the LLVM repository and built Clang and the runtimes using the following sequence of commands, but the file libclang_rt.builtins.a is not produced.

cd llvm-project
mkdir ../llvm-and-libcxx-build
cmake -G Ninja -S llvm -B ../llvm-and-libcxx-build -DLLVM_ENABLE_PROJECTS=clang -DLLVM_ENABLE_RUNTIMES=all -DLLVM_RUNTIME_TARGETS=x86_64-unknown-linux-gnu -DCMAKE_BUILD_TYPE=Release
cd ..
ninja -C llvm-and-libcxx-build runtimes

llvm/CMakeLists.txt has

set(LLVM_DEFAULT_RUNTIMES "libcxx;libcxxabi;libunwind")

so I wonder if you need to list the ones you want explicitly including compiler-rt .

That’s terrible. care to open issue for this?

Build libc++, libc++abi, libunwind or compiler-rt using the just-built compiler. This is the correct way to build runtimes when putting together a toolchain. It will build the builtins separately from the other runtimes to preserve correct dependency ordering. If you want to build the runtimes using a system compiler, see the libc++ documentation. Note: the list should not have duplicates with LLVM_ENABLE_PROJECTS. The full list is: compiler-rt;libc;libcxx;libcxxabi;libunwind;openmp To enable all of them, use: LLVM_ENABLE_RUNTIMES=all