Павел Безбородов via llvm-dev
2018-Sep-27 11:40 UTC
[llvm-dev] How to cross-compile for ARC in clang?
Hello everyone, I'm trying to compile my test.cpp for ARC, using this guide https://clang.llvm.org/docs/CrossCompilation.html. I've built my LLVM+CLANG with ARC, ARM and X86. clang -target arc -S test.cpp Gives me: error: unknown target triple 'arc', please use -triple or -arch clang -targer arm works fine Is there any way to compile for ARC? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180927/f5302aa5/attachment.html>
Krzysztof Parzyszek via llvm-dev
2018-Sep-27 11:46 UTC
[llvm-dev] How to cross-compile for ARC in clang?
On 9/27/2018 6:40 AM, Павел Безбородов via llvm-dev wrote:> > I've built my LLVM+CLANG with ARC, ARM and X86. > > clang -target arc -S test.cpp > Gives me: > error: unknown target triple 'arc', please use -triple or -arch > > clang -targer arm works fine > > Is there any way to compile for ARC?Could you run "llc --version"? It should print all targets that were built. Arc is an experimental target, did you use LLVM_EXPERIMENTAL_TARGETS_TO_BUILD? -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Tim Northover via llvm-dev
2018-Sep-27 11:47 UTC
[llvm-dev] How to cross-compile for ARC in clang?
Hi, On Thu, 27 Sep 2018 at 12:41, Павел Безбородов via llvm-dev <llvm-dev at lists.llvm.org> wrote:> clang -target arc -S test.cppI couldn't find any trace of ARC in the Clang source, so I suspect it's only supported by LLVM at the moment. Cheers. Tim,
Павел Безбородов via llvm-dev
2018-Sep-27 11:51 UTC
[llvm-dev] How to cross-compile for ARC in clang?
[haze at haze-pc bin]$ ./llc --version LLVM (http://llvm.org/): LLVM version 6.0.0 DEBUG build with assertions. Default target: x86_64-unknown-linux-gnu Host CPU: skylake Registered Targets: arc - ARC x86 - 32-bit X86: Pentium-Pro and above x86-64 - 64-bit X86: EM64T and AMD64 yes, I've set LLVM_EXPERIMENTAL_TARGETS_TO_BUILD=ARC чт, 27 сент. 2018 г. в 14:46, Krzysztof Parzyszek via llvm-dev < llvm-dev at lists.llvm.org>:> On 9/27/2018 6:40 AM, Павел Безбородов via llvm-dev wrote: > > > > I've built my LLVM+CLANG with ARC, ARM and X86. > > > > clang -target arc -S test.cpp > > Gives me: > > error: unknown target triple 'arc', please use -triple or -arch > > > > clang -targer arm works fine > > > > Is there any way to compile for ARC? > > Could you run "llc --version"? It should print all targets that were > built. Arc is an experimental target, did you use > LLVM_EXPERIMENTAL_TARGETS_TO_BUILD? > > -Krzysztof > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > hosted by The Linux Foundation > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://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/20180927/7804be38/attachment.html>
Павел Безбородов via llvm-dev
2018-Sep-27 11:56 UTC
[llvm-dev] How to cross-compile for ARC in clang?
Oh, that's what I was afraid of. So there is definetly no way to compile for ARC? If so, should I write ARC.h(.cpp) in lib/Basic/Targets in order to make it work? чт, 27 сент. 2018 г. в 14:47, Tim Northover <t.p.northover at gmail.com>:> Hi, > > On Thu, 27 Sep 2018 at 12:41, Павел Безбородов via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > clang -target arc -S test.cpp > > I couldn't find any trace of ARC in the Clang source, so I suspect > it's only supported by LLVM at the moment. > > Cheers. > > Tim, >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180927/79fc55bd/attachment.html>