[patch] Look for libstdc++ install dir before /usr

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Aug 28 15:49:28 PDT 2013


Hi Chandler,

While working on making libc++ easier to use, I noticed that clang was
not finding even libstdc++ installed next to it. The problem is that
the libstdc++ I had installed was exactly the same version as the
system one.

The attached patch changes the driver to look first at the clang
install directory if it is not given a sysroot.

Not sure if there is a way to test this. We do have -ccc-install-dir,
but the patch only changes the case where sysroot is not set.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libstdcxx.patch
Type: application/octet-stream
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130828/33ff0b01/attachment.obj>


More information about the cfe-commits mailing list