[all-commits] [llvm/llvm-project] f2710d: lld/mach-o: Infer darwinnew from filename ld64.lld...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Nov 16 12:25:25 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f2710d4b576053d405af7a0e2a62ea06d5a978e3
      https://github.com/llvm/llvm-project/commit/f2710d4b576053d405af7a0e2a62ea06d5a978e3
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M lld/tools/lld/lld.cpp

  Log Message:
  -----------
  lld/mach-o: Infer darwinnew from filename ld64.lld.darwinnew too

`-flavor` is difficult to use through the clang driver since it
must be the first argument.

clang's `-fuse-ld=foo` looks for `ld64.foo` when targeting darwin,
so it's easiest if darwinnew accepts some `ld64.foo`. Let's go with
`ld64.lld.darwinnew`, so that `clang -fuse-ld=lld.darwinnew` does
the right thing (assuming a symlink with the name `ld64.ld.darwinnew
exists in the right place).

This is temporary until darwinnew replaces ld64.lld, and it only
exists to make testing the new lld port easier.




More information about the All-commits mailing list