I built llvm/clang-16.0.5 from scratch on x86_64/Linux. I’m trying to use it to build an arm64 program with Asan. Problem is, I have no libraries for anything other than x86(_64) What do I have to give cmake so that it builds runtimes (especially sanitizers) for AArch64?
Currently doing this:
cmake \
-G "CodeBlocks - Ninja" \
-DCMAKE_BUILD_TYPE=${var1} \
${var2}/source/llvm \
-DCMAKE_INSTALL_PREFIX:PATH=${var3} \
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;lldb;compiler-rt;lld;polly' \
-DLLVM_ENABLE_RUNTIMES=all \
-DLLVM_TARGETS_TO_BUILD=all \
"$@"
I tried -DLLVM_TARGETS_TO_BUILD=‘X86;AArch64’ and also didn’t get arm64 libs.