Add the Solaris support directory to the header search when using libc++.
Unconditionally define __C99FEATURES__ when using C++ on Solaris. This is a (hopefully temporary) work around for libc++ exposing C99-but-not-C++98 features in C++98 mode. llvm-svn: 151889
This commit is contained in:
@@ -461,6 +461,11 @@ void InitHeaderSearch::AddDefaultIncludePaths(const LangOptions &Lang,
|
||||
AddPath(P.str(), CXXSystem, true, false, false, true);
|
||||
}
|
||||
}
|
||||
// On Solaris, include the support directory for things like xlocale and
|
||||
// fudged system headers.
|
||||
if (triple.getOS() == llvm::Triple::Solaris)
|
||||
AddPath("/usr/include/c++/v1/support/solaris", CXXSystem, true, false,
|
||||
false);
|
||||
|
||||
AddPath("/usr/include/c++/v1", CXXSystem, true, false, false);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user