From: Paul Robinson Date: Sat, 25 Feb 2017 00:15:45 +0000 (+0000) Subject: [PS4] Set our default dialect to C++11. NFC for other targets. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1e33ad623c6df31fcf79616a6ee8e0c0bb70cc2;p=clang [PS4] Set our default dialect to C++11. NFC for other targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296209 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 2ef96398c0..46c60e5da8 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1582,7 +1582,11 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, case IK_PreprocessedCXX: case IK_ObjCXX: case IK_PreprocessedObjCXX: - LangStd = LangStandard::lang_gnucxx98; + // The PS4 uses C++11 as the default C++ standard. + if (T.isPS4()) + LangStd = LangStandard::lang_gnucxx11; + else + LangStd = LangStandard::lang_gnucxx98; break; case IK_RenderScript: LangStd = LangStandard::lang_c99;