[cfe-dev] Version agnostic path search for mingw

James Molloy James.Molloy at arm.com
Mon Mar 19 13:21:23 PDT 2012


That's what the target database was meant to accomplish, but that's low down on my radar at the moment due to other commitments unfortunately :(
________________________________________
From: cfe-dev-bounces at cs.uiuc.edu [cfe-dev-bounces at cs.uiuc.edu] On Behalf Of David Chisnall [csdavec at swan.ac.uk]
Sent: 19 March 2012 15:13
To: Aaron Ballman
Cc: cfe-dev Developers; vanboxem.ruben
Subject: Re: [cfe-dev] Version agnostic path search for mingw

On 19 Mar 2012, at 13:44, Aaron Ballman wrote:

> Also, I wonder if we can continue the generalization of the functions
> so they can be used by any of the triples which have version numbers
> in their paths?

It would be nice to have something generic where we can specify a pattern.  This would be useful for all platforms using GNUy headers / libs, including Linux and Solaris.  There's already some GCC search logic that Chandler wrote, but it's quite Linux-specific.

The gcc paths I've seen have, some, none, or all of:

- some fixed components (e.g. /opt/gnu, /usr/gcc, /usr/local)
- GCC major and minor (e.g. 4.5) components
- GCC major, minor, and subminor (e.g. 4.5.1) components
- The full triple (e.g. i686-linux-gnu)
- The base triple and a suffix (e.g i386-pc-solaris11/amd64)

I would love to see an API where I can provide each of these path components including placeholders for GCC versions and the triple, and have it return the best match.  In a perfect world, it should also respect --sysroot.

David


_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.





More information about the cfe-dev mailing list