diff --git a/script/compile b/script/compile index ab15cd07..3da7bc24 100755 --- a/script/compile +++ b/script/compile @@ -76,7 +76,7 @@ args=( "-jar" "$BABASHKA_JAR" BABASHKA_STATIC=${BABASHKA_STATIC:-} BABASHKA_ARCH=${BABASHKA_ARCH:-} -if [ "$BABASHKA_STATIC" = "true" ] & [ "$BABASHKA_ARCH" != "aarch64" ]; then +if [ "$BABASHKA_STATIC" = "true" ] && [ "$BABASHKA_ARCH" != "aarch64" ]; then args+=("--static" "--libc=musl" # see https://github.com/oracle/graal/issues/3398 "-H:CCompilerOption=-Wl,-z,stack-size=2097152")