[PS4] Set our default dialect to C++11. NFC for other targets.
Reapplies r296209 now that r296549 has fixed what really seems to be the last problematic test. llvm-svn: 296554
This commit is contained in:
parent
1eca59e8b7
commit
18c12d534d
|
@ -1582,6 +1582,10 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
|
|||
case IK_PreprocessedCXX:
|
||||
case IK_ObjCXX:
|
||||
case IK_PreprocessedObjCXX:
|
||||
// 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:
|
||||
|
|
Loading…
Reference in New Issue