[cfe-dev] [LLVMdev] [PATCH] triples for baremetal

Tim Northover t.p.northover at gmail.com
Tue Jun 24 07:13:31 PDT 2014


Hi Jon,

On 24 June 2014 14:58, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
> This patch changes behavior a little for macho_embedded targets (i.e. from
> OSType::Unknown to OSType::NoneOS). I see that there is existing code to
> transform triples from things like thumbv7-apple-darwin into
> thumbv7m-apple-unknown-macho. Do you have an expectation to support users
> who are using the latter form of triples who would be surprised by the
> change from thumbv7m-apple-unknown-macho to thumbv7m-apple-none-macho (i.e.
> their thumbv7m-apple-unknown-macho builds no longer work)?

Mostly people should be getting these triples (from out perspective)
via "-arch armv7m" and similar, so things should just work for them.

> Is this a case where all three triples are to mean the same thing?

Well, "-darwin" is different, but that's already taken care of in the
driver. I'm actually still a little hazy on when the two being
disambiguated would ever be treated differently. But no doubt someone
has plans, so I'll watch with interest.

Cheers.

Tim.



More information about the cfe-dev mailing list