[cfe-dev] Ubuntu install location fixes
clattner at apple.com
Tue Feb 16 10:16:56 PST 2010
On Feb 16, 2010, at 10:07 AM, David Chisnall wrote:
> On 16 Feb 2010, at 17:57, Chris Lattner wrote:
>> Would it be possible to convince you guys to replace this with some code that uses the "last" directory in /usr/include/c++ with readdir? That way we could stop manually adding new versions.
> Last time I looked at this code, it had a big FIXME saying it was the wrong approach. Since nobody else seems to be fixing this, I wonder if I should take a look at refactoring it. Maybe we should define a fixed location or two to look for a clang_header.conf file that will list standard include locations? Then distributions just need to provide this file, rather than having special cases for every single file. Maybe also add an option for overriding this file so that we can easily remove all system includes from the search path for cross-compiling?
> If this approach sounds sensible then I'm happy to write the code. If someone else has a better idea, please let me know what it is...
I think the best approach is to make this be a configure option at clang build time. Second to that, just making the code scan the /usr/include/c++ dir and pick the latest revision available would work.
More information about the cfe-dev