[PATCH] D119612: [clang] Pass more flags to ld64.lld
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 14 11:05:21 PST 2022
MaskRay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Darwin.cpp:272
- // ld64 version 262 and above run the deduplicate pass by default.
- if (Version >= VersionTuple(262) && shouldLinkerNotDedup(C.getJobs().empty(), Args))
+ // ld64 version 262 and above and lld run the deduplicate pass by default.
+ if ((Version >= VersionTuple(262) || LinkerIsLLD) &&
----------------
lld runs `--icf=none` (i.e. `-no_deduplicate`) by default.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119612/new/
https://reviews.llvm.org/D119612
More information about the cfe-commits
mailing list