Merge "Disable "-Wl,-plugin-opt,-import-instr-limit=5" on MacOS" am: b0d649043f
am: 0a9b2305de
am: 8e9d8437c7
am: 3c4f70fdde
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2642097 Change-Id: Ie0d282bf66dda5f7aef24484d9ea2a657484d0a6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
7d29da26f6
@@ -109,7 +109,7 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
|
||||
|
||||
// If the module does not have a profile, be conservative and limit cross TU inline
|
||||
// limit to 5 LLVM IR instructions, to balance binary size increase and performance.
|
||||
if !ctx.isPgoCompile() && !ctx.isAfdoCompile() {
|
||||
if !ctx.Darwin() && !ctx.isPgoCompile() && !ctx.isAfdoCompile() {
|
||||
flags.Local.LdFlags = append(flags.Local.LdFlags,
|
||||
"-Wl,-plugin-opt,-import-instr-limit=5")
|
||||
}
|
||||
|
Reference in New Issue
Block a user