summaryrefslogtreecommitdiffstats
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
commitcb60143ec34520d9e8ef3e5f6c7b279d020550c4 (patch)
treeac5877d326ead923748f812a08e1b1405ca6f91c
parent45d26bd00d1461a55fb81fa4a167ea0c30053cb9 (diff)
downloadbcm5719-llvm-cb60143ec34520d9e8ef3e5f6c7b279d020550c4.tar.gz
bcm5719-llvm-cb60143ec34520d9e8ef3e5f6c7b279d020550c4.zip
always search for "builtin" headers at the end of the search path,
and never remap them with -isysroot. This fixes PR3614. llvm-svn: 65012
-rw-r--r--clang/Driver/clang.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index a818c8d1a4e..79166fb0bdf 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/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)
OpenPOWER on IntegriCloud