Trying to cross-compile with Asan for AAarch64; missing libraries

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 \
    -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;lldb;compiler-rt;lld;polly' \

I tried -DLLVM_TARGETS_TO_BUILD=‘X86;AArch64’ and also didn’t get arm64 libs.


Using LLVM_RUNTIME_TARGETS also did not get me any runtime libraries.