[all-commits] [llvm/llvm-project] 7d57c6: [lld-macho] Add support for -w

Keith Smiley via All-commits all-commits at lists.llvm.org
Sat Jun 11 17:39:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d57c69826a6bf4f29875994743ef4c717ee9deb
      https://github.com/llvm/llvm-project/commit/7d57c69826a6bf4f29875994743ef4c717ee9deb
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-06-11 (Sat, 11 Jun 2022)

  Changed paths:
    M lld/Common/ErrorHandler.cpp
    M lld/MachO/DriverUtils.cpp
    M lld/MachO/Options.td
    M lld/include/lld/Common/ErrorHandler.h
    M lld/test/MachO/fatal-warnings.s

  Log Message:
  -----------
  [lld-macho] Add support for -w

This flag suppresses warnings produced by the linker. In ld64 this has
an interesting interaction with -fatal_warnings, it silences the
warnings but the link still fails. Instead of doing that here we still
print the warning and eagerly fail the link in case both are passed,
this seems more reasonable so users can understand why the link fails.

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




More information about the All-commits mailing list