зеркало из https://github.com/microsoft/clang-1.git
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
16581335fc
Коммит
b4f0bd6864
|
@ -498,7 +498,7 @@ protected:
|
|||
Builder.defineMacro("_XOPEN_SOURCE", "600");
|
||||
else
|
||||
Builder.defineMacro("_XOPEN_SOURCE", "500");
|
||||
if (Opts.CPlusPlus0x)
|
||||
if (Opts.CPlusPlus)
|
||||
Builder.defineMacro("__C99FEATURES__");
|
||||
Builder.defineMacro("_LARGEFILE_SOURCE");
|
||||
Builder.defineMacro("_LARGEFILE64_SOURCE");
|
||||
|
|
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче