[llvm-dev] How to cross-compile for ARC in clang?

Павел Безбородов via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 27 04:51:55 PDT 2018


[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>


More information about the llvm-dev mailing list