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

Pete Couperus via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 27 08:32:26 PDT 2018


Hello,

Thanks for the note here.
We put up a patch a while back for enabling the ARC target in clang, the compiler:
https://reviews.llvm.org/D43089

(I didn't realize this was from so far back until looking now).
The current backend has really only been exercised through C.
So, applying this patch should help.
We also have some driver changes which can be used to integrate with the ARC GNU toolchain.  The sticky point is C++ support.

Pete


From: Tom Honermann
Sent: Thursday, September 27, 2018 6:17 AM
To: Павел Безбородов <dfa.sro591 at gmail.com>; t.p.northover at gmail.com; llvm-dev at lists.llvm.org
Cc: Pete Couperus <petecoup at synopsys.com>
Subject: Re: [llvm-dev] How to cross-compile for ARC in clang?

On 9/27/2018 7:56 AM, Павел Безбородов via llvm-dev wrote:
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?

I suggest you reach out to the contributors of the LLVM ARC backend (CCd) to ask about their plans to contribute target support for Clang.  I believe they have work in progress, but I don't know their plans for contributing it.

Tom.



чт, 27 сент. 2018 г. в 14:47, Tim Northover <t.p.northover at gmail.com<mailto:t.p.northover at gmail.com>>:
Hi,

On Thu, 27 Sep 2018 at 12:41, Павел Безбородов via llvm-dev
<llvm-dev at lists.llvm.org<mailto: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/6cd3c855/attachment-0001.html>


More information about the llvm-dev mailing list