Add new redhat triple

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jan 13 09:46:14 PST 2014


> Not an official package.
>
> But current RedHat and CentOS call their host x86_64-redhat-linux-gnu,
> and that's where, from what I can find, the triple got embedded into
> GCC from.
>
> There also isn't an official binary package of gcc 4.8 I can get at
> from RedHat or CentOS which would answer what their official will ones
> do.

Can you check their spec files to see if they pass an explicit triple.
It is quiet surprising that RHEL and Fedora would use different
triples.

>> So your idea is to do a directory listing and check which entries
>> "look like" triples? I could probably be made to work. Chandler, what
>> do you think?
>
> Yep, list the directory for things that look like triples, parse out
> the relevant facts from those triples (architecture, kernel,
> distribution, etc.) where clang cares, then pick the best one.

It seems like a reasonable idea to me. Are you interested in coding
such a patch? It should make the Driver a bit faster and easier to
maintain (and add support for your setup).

Cheers,
Rafael



More information about the cfe-commits mailing list