Define -fatal-warnings to make warnings fatal, and accept /WX as an ML.EXE compatible alias for it.
Also make sure that if Warning() returns true, we always treat it as an error.
Paths
| Differential D92504
[ms] [llvm-ml] Accept /WX to signal that warnings should be fatal. ClosedPublic Authored by epastor on Dec 2 2020, 1:04 PM.
Details Summary Define -fatal-warnings to make warnings fatal, and accept /WX as an ML.EXE compatible alias for it. Also make sure that if Warning() returns true, we always treat it as an error.
Diff Detail
Event Timelineepastor added a parent revision: D92503: [ms] [llvm-ml] Fix case-sensitivity for variables and textmacros.Dec 2 2020, 1:05 PM epastor added a child revision: D92505: [ms] [llvm-ml] Warn on redefinition of a command-line definition.Dec 2 2020, 1:08 PM This revision now requires changes to proceed.Dec 3 2020, 6:52 AM epastor retitled this revision from [ms] [llvm-ml] When warnings are fatal, make sure to fail on warnings to [ms] [llvm-ml] Accept /WX to signal that warnings should be fatal..Mar 17 2021, 11:12 AM This revision is now accepted and ready to land.Apr 2 2021, 8:12 AM Closed by commit rG0499a9d68890: [ms] [llvm-ml] Accept /WX to signal that warnings should be fatal. (authored by epastor). · Explain WhyApr 2 2021, 12:13 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 335010 llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/hexfloat_error.asm
llvm/test/tools/llvm-ml/hexfloat_warn.asm
llvm/tools/llvm-ml/Opts.td
llvm/tools/llvm-ml/llvm-ml.cpp
|