[all-commits] [llvm/llvm-project] adfbb5: [lld-macho] Add warn flags to enable/disable warni...

Vincent Lee via All-commits all-commits at lists.llvm.org
Wed Nov 17 16:18:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: adfbb5411b0b0461c230b51623c9128e0ccc60c9
      https://github.com/llvm/llvm-project/commit/adfbb5411b0b0461c230b51623c9128e0ccc60c9
  Author: Vincent Lee <leevince at fb.com>
  Date:   2021-11-17 (Wed, 17 Nov 2021)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/test/MachO/install-name.s

  Log Message:
  -----------
  [lld-macho] Add warn flags to enable/disable warnings on -install_name

ld64 doesn't warn on builds using `-install_name` if it's a bundle. But, the
current warning is nice to have because `install_name` only works with dylib.
To prevent an overflow of warnings in build logs and have parity with ld64,
create a `--warn-dylib-install-name` and `--warn-no-dylib-install-name` flag
that enables this LLD specific warning.

Reviewed By: #lld-macho, thakis

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




More information about the All-commits mailing list