The documentation [1] has an example
$ cmake -G Ninja -S runtimes -B build \
-DLLVM_ENABLE_RUNTIMES="libcxx" \ -DLIBCXX_CXX_ABI=libstdc++ \ -DLIBCXX_CXX_ABI_INCLUDE_PATHS="/usr/include/c++/4.7/;/usr/include/c++/4.7/x86_64-linux-gnu/"
Unfortunately the LIBCXX_ cmake arguments aren't forwarded to the CMake
for libc++. This was discovered while working on enabling modules in the
libc++ bootstrap CI build.
[1] https://libcxx.llvm.org/BuildingLibcxx.html#using-libsupc-on-linux
Depends on D158860
This code path is only used with LLVM_RUNTIME_TARGETS, passing through all variables into every target is a breaking change because not all variables might be applicable to every target.