]> granicus.if.org Git - clang/commitdiff
Correction for r131662, the GNU as option is --fatal-warnings.
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 19 May 2011 20:46:39 +0000 (20:46 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 19 May 2011 20:46:39 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131671 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/CC1AsOptions.td
lib/Driver/Tools.cpp

index cc418e7353fe1360203a3e371780755e58d789f5..b1067b788983f716fe57320c2829d525c1e3ef37 100644 (file)
@@ -78,5 +78,5 @@ def relax_all : Flag<"-relax-all">,
 def no_exec_stack : Flag<"--noexecstack">,
     HelpText<"Mark the file as not needing an executable stack">;
 
-def fatal_warnings : Flag<"-fatal-warnings">,
+def fatal_warnings : Flag<"--fatal-warnings">,
     HelpText<"Consider warnings as errors">;
index c575afb95eb6b301856e32d0c3c20b7ec0c9f219..9ff8a5ccdc1d867f3b541d8c1a466a6d2f595617 100644 (file)
@@ -1020,7 +1020,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
           // Do nothing, this is the default and we don't support anything else.
         } else if (Value == "-L") {
           CmdArgs.push_back("-msave-temp-labels");
-        } else if (Value == "-fatal-warnings") {
+        } else if (Value == "--fatal-warnings") {
           CmdArgs.push_back("-mllvm");
           CmdArgs.push_back("-fatal-assembler-warnings");
         } else {