summaryrefslogtreecommitdiff
path: root/Driver
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-19 04:55:19 +0000
committerChris Lattner <sabre@nondot.org>2009-02-19 04:55:19 +0000
commitb52ec74a71bd56e8d6801abbcfc99d9bd1fba39e (patch)
treef222f797ca14dac6e6597ebd7e688e7b6a5df0c9 /Driver
parent50b587d02f84ccf447d835fe8fcb79aad3a3e126 (diff)
downloadclang-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.cpp4
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)