How to cross compile Clang/LLVM to musl with cmake?
I’ve been trying to build Clang/LLVM for a different C standard library, namely musl. If I build Clang for my host system (x86_64 Linux, glibc), I can build a binary written in C for musl by passing --target=x86_64-unknown-linux-musl
and it works on a VM that has musl library installed. I thought I could use something similar to build Clang itself, effectively bootstrapping it, but no success.