diff --git a/script/compile b/script/compile index 7406d585..04c3c1f7 100755 --- a/script/compile +++ b/script/compile @@ -47,6 +47,7 @@ args=("-jar" "$BABASHKA_JAR" # --trace-class-initialization=jdk.internal.net.http.common.DebugLogger,jdk.internal.net.http.websocket.WebSocketImpl,jdk.internal.net.http.common.Utils "$BABASHKA_XMX" "--enable-preview" + "-march=compatibility" # necessary for compatibility with older machines, e.g. see https://github.com/borkdude/deps.clj/actions/runs/6337277754/job/17212028399 "-O1") BABASHKA_STATIC=${BABASHKA_STATIC:-} diff --git a/script/compile.bat b/script/compile.bat index db34b98a..51abbc72 100644 --- a/script/compile.bat +++ b/script/compile.bat @@ -31,6 +31,7 @@ call %GRAALVM_HOME%\bin\native-image.cmd ^ "--no-fallback" ^ "--enable-preview" ^ "--install-exit-handlers" ^ + "-march=compatibility" ^ "-O1" ^ "%BABASHKA_XMX%" ^ %*