forked from OSchip/llvm-project
Revert r160052, "Default to -std=c++11 on Windows.", for now.
Failing Tests (3): Clang :: Index/complete-cxx-inline-methods.cpp Clang :: Index/recursive-cxx-member-calls.cpp Clang :: SemaTemplate/inject-templated-friend-post.cpp llvm-svn: 160103
This commit is contained in:
parent
775086e67c
commit
e5494ffe4f
|
@ -2124,11 +2124,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
// eventually we want to do all the standard defaulting here instead of
|
// eventually we want to do all the standard defaulting here instead of
|
||||||
// splitting it between the driver and clang -cc1.
|
// splitting it between the driver and clang -cc1.
|
||||||
if (!types::isCXX(InputType))
|
if (!types::isCXX(InputType))
|
||||||
Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ,
|
Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ,
|
||||||
"-std=", /*Joined=*/true);
|
"-std=", /*Joined=*/true);
|
||||||
else if (getToolChain().getTriple().getOS() == llvm::Triple::Win32)
|
|
||||||
CmdArgs.push_back("-std=c++11");
|
|
||||||
|
|
||||||
Args.AddLastArg(CmdArgs, options::OPT_trigraphs);
|
Args.AddLastArg(CmdArgs, options::OPT_trigraphs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue