diff --git a/script/compile b/script/compile index 74b37be6..964a2b06 100755 --- a/script/compile +++ b/script/compile @@ -43,6 +43,7 @@ args=("-jar" "$BABASHKA_JAR" "--verbose" "--no-fallback" "--native-image-info" + "--install-exit-handlers" # --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") diff --git a/script/compile.bat b/script/compile.bat index 78a1be3e..c813f5f1 100644 --- a/script/compile.bat +++ b/script/compile.bat @@ -30,6 +30,7 @@ call %GRAALVM_HOME%\bin\native-image.cmd ^ "--verbose" ^ "--no-fallback" ^ "--enable-preview" ^ + "--install-exit-handlers" ^ "%BABASHKA_XMX%" if %errorlevel% neq 0 exit /b %errorlevel%