From c8324ac8872b0091229c68defdf7251e9be56b6a Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 28 Sep 2023 11:54:37 +0200 Subject: [PATCH] Compatibility with older architectures --- script/compile | 1 + script/compile.bat | 1 + 2 files changed, 2 insertions(+) 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%" ^ %*