[cfe-dev] [patch] Add configure option for C include search path

Rafael Espindola espindola at google.com
Tue Nov 10 16:53:49 PST 2009


>> ../llvm/configure
>> --with-cxx-include-dir=/usr/include/c++/4.2.1,i686-apple-darwin10,,x86_64:/usr/include/c++/4.0.0/,i686-apple-darwin8,,
>
> I still vastly prefer the above. I'd rather avoid counting commas
> *and* colons in the same option...

So this case would be

../llvm/configure
--with-cxx-include-root=/usr/include/c++/4.2.1:/usr/include/c++/4.0.0/
                  --with-cxx-target=i686-apple-darwin10:i686-apple-darwin8
                  --with-cxx-include-32bit-suffix=:
                  --with-cxx-include-64bit-suffix=:x86_64

With the 32 bit suffix being optional since it is empty for both.

I prefer the original one a bit, but I am OK with this one. I will
split the original patch and implement this interface.

> My 2 cents.
> -Chandler


Cheers,
-- 
Rafael Ávila de Espíndola




More information about the cfe-dev mailing list