[cfe-commits] r65012 - /cfe/trunk/Driver/clang.cpp
Chris Lattner
sabre at nondot.org
Wed Feb 18 20:55:19 PST 2009
Author: lattner
Date: Wed Feb 18 22:55:19 2009
New Revision: 65012
URL: http://llvm.org/viewvc/llvm-project?rev=65012&view=rev
Log:
always search for "builtin" headers at the end of the search path,
and never remap them with -isysroot. This fixes PR3614.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=65012&r1=65011&r2=65012&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Feb 18 22:55:19 2009
@@ -1098,8 +1098,8 @@
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)
More information about the cfe-commits
mailing list