Mohannad Ismail via llvm-dev
2020-Sep-30 09:15 UTC
[llvm-dev] Cross-compiling only compiler-rt libraries
Greetings everyone, 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. 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! Best regards, Mohannad Ismail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200930/7a73ee4f/attachment.html>
Tobias Hieta via llvm-dev
2020-Sep-30 16:16 UTC
[llvm-dev] Cross-compiling only compiler-rt libraries
Hey, You can do that by running cmake directly against the compiler-rt directory instead of the llvm dir. Hope this helps! On Wed, Sep 30, 2020, 17:54 Mohannad Ismail via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Greetings everyone, > > 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. > > 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! > > Best regards, > Mohannad Ismail > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200930/cf6baa55/attachment.html>
Mohannad Ismail via llvm-dev
2020-Oct-01 23:08 UTC
[llvm-dev] Cross-compiling only compiler-rt libraries
Hello Tobias, Thank you for your reply. That is very helpful and I currently was able to get that done. However, I was looking for a much cleaner solution in which I can compile clang to be x86 and compiler-rt to be aarch64 both at the same time in one compilation. Do you have any idea if that is possible? Best regards, Mohannad Ismail On Wed, Sep 30, 2020 at 12:16 PM Tobias Hieta <tobias at plexapp.com> wrote:> Hey, > > You can do that by running cmake directly against the compiler-rt > directory instead of the llvm dir. > > Hope this helps! > > On Wed, Sep 30, 2020, 17:54 Mohannad Ismail via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Greetings everyone, >> >> 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. >> >> 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! >> >> Best regards, >> Mohannad Ismail >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201001/f96a64e9/attachment.html>
Seemingly Similar Threads
- Hitting assertion failure related to vectorization + instcombine
- Hitting assertion failure related to vectorization + instcombine
- Hitting assertion failure related to vectorization + instcombine
- Hitting assertion failure related to vectorization + instcombine
- [LLVMdev] Compiler-RT buildbot on ARM