diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-19 04:55:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-19 04:55:19 +0000 |
commit | b52ec74a71bd56e8d6801abbcfc99d9bd1fba39e (patch) | |
tree | f222f797ca14dac6e6597ebd7e688e7b6a5df0c9 /Driver | |
parent | 50b587d02f84ccf447d835fe8fcb79aad3a3e126 (diff) | |
download | clang-b52ec74a71bd56e8d6801abbcfc99d9bd1fba39e.tar.gz |
always search for "builtin" headers at the end of the search path,
and never remap them with -isysroot. This fixes PR3614.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver')
-rw-r--r-- | Driver/clang.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index a818c8d1a4..79166fb0bd 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -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) |