forked from OSchip/llvm-project
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:
parent
45d26bd00d
commit
cb60143ec3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue