Skip to content

Commit ebba933

Browse files
committed
fix: drop -fuse-linker-plugin
Signed-off-by: Sam Gammon <[email protected]>
1 parent b9c16cb commit ebba933

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cli/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ val preferShared = false
135135
val enableToolchains = false
136136
val forceFfm = false
137137
val enableClang = false
138+
val enableLto = false
138139
val oracleGvm = true
139140
val oracleGvmLibs = oracleGvm
140141
val enableMosaic = false
@@ -1587,7 +1588,7 @@ val releaseCFlags: List<String> = listOf(
15871588
"-fPIE",
15881589
//"-flto",
15891590
).plus(
1590-
listOf("-fuse-linker-plugin").onlyIf(!enableClang && !isClang && !HostManager.hostIsMac && !enableStatic)
1591+
listOf("-fuse-linker-plugin").onlyIf(enableLto && !enableClang && !isClang && !HostManager.hostIsMac && !enableStatic)
15911592
).plus(
15921593
// Add protection flags for release.
15931594
when (targetArch) {

0 commit comments

Comments
 (0)