[cfe-commits] [PATCH] Add the resource directory to the search path for Driver::GetFilePath

Peter Collingbourne peter at pcc.me.uk
Thu Sep 1 14:16:09 PDT 2011


Hi,

This patch adds the resource directory to the search path for
Driver::GetFilePath, as well as the search path printed by
-print-search-dirs.

The main purpose of this change is to cause -print-file-name=include
to print the path to the include directory under Clang's resource
directory, instead of the system compiler's include directory, whose
header files Clang may not be able to parse.  Some build scripts will
do something like:
  $(CC) -nostdinc -I`$(CC) -print-file-name=include`
to exclude all header paths except the compiler's (I've observed this
happening with uclibc).

OK to commit?

Thanks,
-- 
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-the-resource-directory-to-the-search-path-for-Dr.patch
Type: text/x-diff
Size: 2168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110901/722029aa/attachment.patch>


More information about the cfe-commits mailing list