[lld/mac] Implement -needed_framework, -needed_library, -needed-l
authorNico Weber <thakis@chromium.org>
Wed, 2 Jun 2021 15:06:42 +0000 (11:06 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 2 Jun 2021 15:06:42 +0000 (11:06 -0400)
commit66a1ecd2cf905d6119477516601126f44be297a8
tree2f8fd2f7ee5588445641439b075e828fb9f79d51
parente14fd7d8797b7a6c5ceb8a8dc832161a1c90c08e
[lld/mac] Implement -needed_framework, -needed_library, -needed-l

These allow overriding dead_strip_dylibs.

Differential Revision: https://reviews.llvm.org/D103499
lld/MachO/Driver.cpp
lld/MachO/InputFiles.h
lld/MachO/Options.td
lld/MachO/Writer.cpp
lld/test/MachO/dead-strip-dylibs.s