Skip to content

Commit 2dd8a27

Browse files
committed
[GR-64588] Enable RemoveUnusedSymbols on darwin.
PullRequest: graal/20669
2 parents 7fddb2e + 00e18be commit 2dd8a27

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateOptions.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -934,12 +934,8 @@ public static boolean useLIRBackend() {
934934
return "lir".equals(CompilerBackend.getValue());
935935
}
936936

937-
/*
938-
* RemoveUnusedSymbols is not enabled on Darwin by default, because the linker sometimes
939-
* segfaults when the -dead_strip option is used.
940-
*/
941937
@Option(help = "Use linker option to prevent unreferenced symbols in image.")//
942-
public static final HostedOptionKey<Boolean> RemoveUnusedSymbols = new HostedOptionKey<>(OS.getCurrent() != OS.DARWIN);
938+
public static final HostedOptionKey<Boolean> RemoveUnusedSymbols = new HostedOptionKey<>(true);
943939
@Option(help = "Use linker option to remove all local symbols from image.")//
944940
public static final HostedOptionKey<Boolean> DeleteLocalSymbols = new HostedOptionKey<>(true);
945941
@Option(help = "Compatibility option to make symbols used for the image heap global. " +

0 commit comments

Comments
 (0)