[all-commits] [llvm/llvm-project] 203731: [clang/mac] Accept -why_load and make -whyload an ...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Mar 8 06:11:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 203731d2c82bc1ba0cfaeb8f3d38e696158ca2cd
      https://github.com/llvm/llvm-project/commit/203731d2c82bc1ba0cfaeb8f3d38e696158ca2cd
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Darwin.cpp

  Log Message:
  -----------
  [clang/mac] Accept -why_load and make -whyload an alias for it

>From `man ld`:

     -why_load   Log why each object file in a static library is loaded.
                 That is, what symbol was needed.
                 Also called -whyload for compatibility.

`-why_load` is the spelling preferred by the linker and `-whyload` an old
compatibility setting. clang should accept the preferred form, and map both
forms to the preferred form.

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




More information about the All-commits mailing list