[all-commits] [llvm/llvm-project] 0499a9: [ms] [llvm-ml] Accept /WX to signal that warnings ...

Eric Astor via All-commits all-commits at lists.llvm.org
Fri Apr 2 12:13:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0499a9d6889050c4b28c0d6d9ec987831ad7de7e
      https://github.com/llvm/llvm-project/commit/0499a9d6889050c4b28c0d6d9ec987831ad7de7e
  Author: Eric Astor <epastor at google.com>
  Date:   2021-04-02 (Fri, 02 Apr 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/MasmParser.cpp
    A llvm/test/tools/llvm-ml/hexfloat_error.asm
    A llvm/test/tools/llvm-ml/hexfloat_warn.asm
    M llvm/tools/llvm-ml/Opts.td
    M llvm/tools/llvm-ml/llvm-ml.cpp

  Log Message:
  -----------
  [ms] [llvm-ml] Accept /WX to signal that warnings should be fatal.

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.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D92504




More information about the All-commits mailing list