[cfe-commits] r126884 - /cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Mar 2 13:30:07 PST 2011
Author: rafael
Date: Wed Mar 2 15:30:07 2011
New Revision: 126884
URL: http://llvm.org/viewvc/llvm-project?rev=126884&view=rev
Log:
Apply sysroot to system c++ headers too. Fixes PR9372.
Modified:
cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
Modified: cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitHeaderSearch.cpp?rev=126884&r1=126883&r2=126884&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitHeaderSearch.cpp (original)
+++ cfe/trunk/lib/Frontend/InitHeaderSearch.cpp Wed Mar 2 15:30:07 2011
@@ -113,7 +113,7 @@
llvm::StringRef MappedPathStr = Path.toStringRef(MappedPathStorage);
// Handle isysroot.
- if (Group == System && !IgnoreSysRoot &&
+ if ((Group == System || Group == CXXSystem) && !IgnoreSysRoot &&
llvm::sys::path::is_absolute(MappedPathStr) &&
IsNotEmptyOrRoot) {
MappedPathStorage.clear();
More information about the cfe-commits
mailing list