]> granicus.if.org Git - clang/commitdiff
Revert r160052, "Default to -std=c++11 on Windows.", for now.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 12 Jul 2012 03:14:56 +0000 (03:14 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 12 Jul 2012 03:14:56 +0000 (03:14 +0000)
Failing Tests (3):
    Clang :: Index/complete-cxx-inline-methods.cpp
    Clang :: Index/recursive-cxx-member-calls.cpp
    Clang :: SemaTemplate/inject-templated-friend-post.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160103 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 4e03603416d9fa2c81e84ad1fb6e832643504b2e..66d792ffba3e0a2f18b04b461010f0d2bbd94b5b 100644 (file)
@@ -2124,11 +2124,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     // eventually we want to do all the standard defaulting here instead of
     // splitting it between the driver and clang -cc1.
     if (!types::isCXX(InputType))
-      Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ,
-                                "-std=", /*Joined=*/true);
-    else if (getToolChain().getTriple().getOS() == llvm::Triple::Win32)
-      CmdArgs.push_back("-std=c++11");
-
+        Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ,
+                                  "-std=", /*Joined=*/true);
     Args.AddLastArg(CmdArgs, options::OPT_trigraphs);
   }