diff --git a/script/compile b/script/compile index 9c5fa7f6..99969384 100755 --- a/script/compile +++ b/script/compile @@ -7,6 +7,10 @@ if [ -z "$GRAALVM_HOME" ]; then exit 1 fi +if [ -z "$BABASHKA_XMX"]; then + export BABASHKA_XMX="-J-Xmx3g" +fi + "$GRAALVM_HOME/bin/gu" install native-image || true BABASHKA_VERSION=$(cat resources/BABASHKA_VERSION) @@ -40,6 +44,6 @@ $GRAALVM_HOME/bin/native-image \ --verbose \ --no-fallback \ --no-server \ - "-J-Xmx3g" + "$BABASHKA_XMX" lein clean