From b52ec74a71bd56e8d6801abbcfc99d9bd1fba39e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 19 Feb 2009 04:55:19 +0000 Subject: 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 --- Driver/clang.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Driver') 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) -- cgit v1.2.1