<div dir="auto">Hey,<div dir="auto"><br></div><div dir="auto">You can do that by running cmake directly against the compiler-rt directory instead of the llvm dir.</div><div dir="auto"><br></div><div dir="auto">Hope this helps!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 30, 2020, 17:54 Mohannad Ismail via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Greetings everyone,<div><br></div><div>I am currently cross-compiling some of my programs to aarch64 with Clang. I added my own sanitizer and library to the compiler-rt and want to use it. However, since my machine is x86, the libraries are compiled for x86 use. I was able to cross-compile to get the aarch64 libraries. However, this also cross-compiles clang and now I can't use it on my x86 machine. Is there a way to cross-compile only compiler-rt and not Clang? I can't seem to find a way to do this.</div><div><br></div><div>In short, I want to have aarch64 compiler-rt libraries and an x86 clang, since I will be compiling my programs on an x86 machine. Hope I was able to explain this well enough. Please let me know if I wasn't clear or if you have any questions. Thank you very much!</div><div><br></div><div>Best regards,</div><div>Mohannad Ismail</div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>