If I build with -DLLVM_ENABLE_PROJECTS=clang
and -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compiler-rt"
, I run into issues described in this post.
Also note that if I omit compiler-rt
from LLVM_ENABLE_RUNTIMES
but keep the other libraries, the build go through fine (but then of course, compiler-rt
is not built).
-DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;libunwind;compiler-rt"
works though it complains that -DLLVM_ENABLE_PROJECTS
is deprecated for libcxx
, libcxxabi
and libunwind
.
The compiler-rt documentation says that -DLLVM_ENABLE_RUNTIMES=compiler-rt
is supposed to work. But I have had no success with it due to the problems described in my other post.
I want to use -DLLVM_ENABLE_RUNTIMES
because I want to build for multiple runtime targets like this:
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compiler-rt"
-DLLVM_RUNTIME_TARGETS="x86_64-unknown-linux-gnu;i386-unknown-linux-gnu"
Without -DLLVM_ENABLE_RUNTIMES
, it seems -DLLVM_RUNTIME_TARGETS
will be ignored. The old way to build 32-bit targets using -DLLVM_BUILD_32_BITS=ON
no longer works for runtime.