From: Chris Lattner Date: Thu, 19 Feb 2009 04:55:19 +0000 (+0000) Subject: always search for "builtin" headers at the end of the search path, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b52ec74a71bd56e8d6801abbcfc99d9bd1fba39e;p=clang 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 --- 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)