[cfe-commits] [patch] a bit of refactoring in the include path code

Douglas Gregor dgregor at apple.com
Mon Oct 5 15:43:57 PDT 2009


On Oct 3, 2009, at 10:49 AM, Rafael Espindola wrote:

> 2009/10/3 Pawel Worach <pawel.worach at gmail.com>:
>> Hi,
>>
>> That's right, there is no triple directory in /usr/include/c++/4.2/  
>> on
>> FreeBSD.
>> I guess this is because all the architectures are built from the  
>> same source
>> tree on FreeBSD and the installation directory tree is defined in  
>> on place
>> for all of them.
>
> Interesting. In this case I think it is better if we don't change the
> BSDs.  Using AddGnuCPlusPlusIncludePaths wouldn't help. Updated patch
> attached.


This refactoring is fine. Eventually we're going to have to do  
something smarter to find libstdc++, because the paths we're producing  
(both before and after your patch) are some rather horrid guesswork.

	- Doug



More information about the cfe-commits mailing list