<div dir="ltr">Hi,<div><br></div><div>I've cross-compiled musl-libc to arm binaries with clang. It needs functions from static runtime library "libcompiler_rt.a". I tried to build compile_rt outside the llvm source tree. Using command like "make clang_linux", I can easily build "libcompiler_rt.a" for my host machine, which is X86_64. But how can I *cross-compile* the compiler_rt runtime libraries?</div><div><br></div><div>According to the following websites:</div><div><a href="https://www.bountysource.com/issues/5139020-linux-arm-platform-support-missing-for-compiler-rt-cross-compiler">https://www.bountysource.com/issues/5139020-linux-arm-platform-support-missing-for-compiler-rt-cross-compiler</a><br></div><div><br></div><div><a href="https://www.bountysource.com/issues/5139002-addresssanitizer-tests-fail-with-dllvm_targets_to_build-arm">https://www.bountysource.com/issues/5139002-addresssanitizer-tests-fail-with-dllvm_targets_to_build-arm</a><br></div><div><br></div><div>It seems that the makefile does not support non-X86 targets. Someone tried cmake failed as well. Any suggestions?</div><div><br></div><div>Thanks,</div><div>Chao </div></div>