always search for "builtin" headers at the end of the search path,

and never remap them with -isysroot.  This fixes PR3614.

llvm-svn: 65012
This commit is contained in:
Chris Lattner 2009-02-19 04:55:19 +00:00
parent 45d26bd00d
commit cb60143ec3
1 changed files with 2 additions and 2 deletions

View File

@ -1098,8 +1098,8 @@ void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
MainExecutablePath.eraseComponent(); // Remove /clang from foo/bin/clang
MainExecutablePath.eraseComponent(); // Remove /bin from foo/bin
MainExecutablePath.appendComponent("Headers"); // Get foo/Headers
Init.AddPath(MainExecutablePath.c_str(), InitHeaderSearch::System,
false, false, false);
Init.AddPath(MainExecutablePath.c_str(), InitHeaderSearch::After,
false, false, false);
}
if (!nostdinc)