[PATCH] D78328: [lld] Infer the driver mode from the target.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 14:32:30 PDT 2020
MaskRay added subscribers: int3, ruiu.
MaskRay added a comment.
@ruiu @int3 If we can't really get rid of the `#if __APPLE__` block, I would hope we can use
#if __APPLE__
// Use Darwin driver for "ld" on Darwin.
if (progname == "ld") {
if (targetMatches(v, [](StringRef s) { ... }) return Gnu;
return Darwin;
}
#endif
This should address the Android folks' problem that `ld` on Darwin acts as a Mach-O linker (instead of an ELF linker).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78328/new/
https://reviews.llvm.org/D78328
More information about the llvm-commits
mailing list