This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

epastor created this revision.Dec 2 2020, 1:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2020, 1:04 PM
epastor requested review of this revision.Dec 2 2020, 1:04 PM
thakis requested changes to this revision.Dec 3 2020, 6:52 AM
This revision now requires changes to proceed.Dec 3 2020, 6:52 AM
epastor updated this revision to Diff 330808.Mar 15 2021, 2:15 PM

Rebase on parent

epastor updated this revision to Diff 331323.Mar 17 2021, 11:11 AM

Revised to include fatal warning support, and test both cases

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
epastor edited the summary of this revision. (Show Details)
thakis accepted this revision.Apr 2 2021, 8:12 AM
This revision is now accepted and ready to land.Apr 2 2021, 8:12 AM
epastor updated this revision to Diff 334994.Apr 2 2021, 11:10 AM

Rebase to HEAD