[llvm-dev] Runtime builds (libc++/compiler-rt) and install directories

Tobias Hieta via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 7 00:04:58 PDT 2021


Hello,

I am converting our build-system to use runtime builds (so that
runtimes are built with the newly built compiler) by setting
LLVM_ENABLE_RUNTIMES=libcxx;compiler-rt and I am running into some
problems with the default search directories and getting a "out of the
box" working toolchain.

By default the runtimes are installed into
<root>/lib/x86_64-unknown-linux-gnu/... and
<root>/lib/clang/12.0.0/lib/x86_64-unknown-linux-gnu

Trying to use clang or clang++ later will not automatically search
those directories. With the old way of doing this (without runtime
builds) it would install the libraries and headers in places where
clang/clang++ would automatically find it.

I have tried the CMake option LLVM_ENABLE_PER_TARGET_RUNTIME_DIR and
set it to "OFF" but this seems not to change anything.

Is there a way to get clang to automatically search these dirs or
control the install directory?

Thanks,
Tobias


More information about the llvm-dev mailing list