Skip to content

Commit 3ca54ac

Browse files
committed
feat(cli): Optimize the native binary for size
This shrinks the binary from 66M to 38M. UPX is able to shrink it further to 16M.
1 parent a01319e commit 3ca54ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ graalvmNative {
4040

4141
buildArgs.addAll(
4242
"--parallelism=8",
43-
"-J-Xmx16g"
43+
"-J-Xmx16g",
44+
"-Os"
4445
)
4546
}
4647
}

0 commit comments

Comments
 (0)