Merge "Disable "-Wl,-plugin-opt,-import-instr-limit=5" on MacOS"
This commit is contained in:
@@ -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
|
// 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.
|
// 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,
|
flags.Local.LdFlags = append(flags.Local.LdFlags,
|
||||||
"-Wl,-plugin-opt,-import-instr-limit=5")
|
"-Wl,-plugin-opt,-import-instr-limit=5")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user