[PATCH] D103324: [lld/mac] Implement -dead_strip

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 12:25:40 PDT 2021


tschuett added a comment.

In D103324#2787281 <https://reviews.llvm.org/D103324#2787281>, @thakis wrote:

> In D103324#2787238 <https://reviews.llvm.org/D103324#2787238>, @tschuett wrote:
>
>> Sorry for bothering with this with ld64.lld:
>>
>>   = note: ld64.lld: error: unknown argument '-m64'
>>           ld64.lld: error: unknown argument '-Wl,-dead_strip'
>>           ld64.lld: error: unknown argument '-nodefaultlibs'
>>           ld64.lld: error: must specify -platform_version
>
> Oh, if you call it through clang (which is the normal way), just -fuse-ld=lld does the right thing. This is really off topic for this review try though 😃

The last off topic comment. The rust compiler invokes the linker: https://doc.rust-lang.org/rustc/codegen-options/index.html#linker


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103324/new/

https://reviews.llvm.org/D103324



More information about the llvm-commits mailing list