From: Joerg Sonnenberger Date: Thu, 19 May 2011 20:46:39 +0000 (+0000) Subject: Correction for r131662, the GNU as option is --fatal-warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46a49391efab20d7a2a1c18f22edb3d76b465252;p=clang Correction for r131662, the GNU as option is --fatal-warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131671 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CC1AsOptions.td b/include/clang/Driver/CC1AsOptions.td index cc418e7353..b1067b7889 100644 --- a/include/clang/Driver/CC1AsOptions.td +++ b/include/clang/Driver/CC1AsOptions.td @@ -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">; diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c575afb95e..9ff8a5ccdc 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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 {