From 5d875d98818ed0e989596e65bda6afd152088ba1 Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Sat, 29 Mar 2025 00:41:29 +0100 Subject: [PATCH 1/2] Optimize release AOT builds for size --- build.sbt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 338c0c4..64da6be 100644 --- a/build.sbt +++ b/build.sbt @@ -45,5 +45,7 @@ lazy val root = (project in file(".")) // GraalVM settings Compile / mainClass := Some("eu.neverblink.jelly.cli.App"), // Do a fast build if it's a dev build - graalVMNativeImageOptions := (if (isDevBuild) Seq("-Ob") else Seq("--emit build-report")), + // For the release build, optimize for size and make a build report + graalVMNativeImageOptions := (if (isDevBuild) Seq("-Ob") else Seq("-Os", "--emit build-report")), + graalVMNativeImageCommand := "/opt/graalvm_2025_02/bin/native-image" ) From daee96d3f6b2584780e94c8c93372eacfdbf5967 Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Sat, 29 Mar 2025 00:42:48 +0100 Subject: [PATCH 2/2] Revert local change --- build.sbt | 1 - 1 file changed, 1 deletion(-) diff --git a/build.sbt b/build.sbt index 64da6be..e9ace07 100644 --- a/build.sbt +++ b/build.sbt @@ -47,5 +47,4 @@ lazy val root = (project in file(".")) // Do a fast build if it's a dev build // For the release build, optimize for size and make a build report graalVMNativeImageOptions := (if (isDevBuild) Seq("-Ob") else Seq("-Os", "--emit build-report")), - graalVMNativeImageCommand := "/opt/graalvm_2025_02/bin/native-image" )