``` export CFLAGS="-fPIC" CXXFLAGS="-fPIC" cmake -GNinja -S llvm -B build-primary -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Data/llvm-test -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;llvm-libgcc" -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-haiku -DLLVM_LIBGCC_EXPLICIT_OPT_IN=Yes -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" ``` This is what I got.