#!/usr/bin/env bash
if [[ $SL_BUILD_NATIVE == "false" ]]; then
    echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
    exit 0
fi
"$JAVA_HOME"/bin/native-image \
    --macro:truffle --no-fallback --initialize-at-build-time \
    -cp ../language/target/simplelanguage.jar:../launcher/target/launcher-19.0.0-SNAPSHOT.jar \
    com.oracle.truffle.sl.launcher.SLMain \
    slnative

#!/usr/bin/env bash
if [[ $SL_BUILD_NATIVE == "false" ]]; then
    echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
    exit 0
fi
"$JAVA_HOME"/bin/native-image --tool:truffle -H:MaxRuntimeCompileMethods=1200 \
    -cp ../language/target/simplelanguage.jar:../launcher/target/launcher-19.0.0-SNAPSHOT.jar \
    com.oracle.truffle.sl.launcher.SLMain \
    slnative

--- 
+++ 
@@ -3,7 +3,8 @@
     echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
     exit 0
 fi
-"$JAVA_HOME"/bin/native-image --tool:truffle -H:MaxRuntimeCompileMethods=1200 \
+"$JAVA_HOME"/bin/native-image \
+    --macro:truffle --no-fallback --initialize-at-build-time \
     -cp ../language/target/simplelanguage.jar:../launcher/target/launcher-19.0.0-SNAPSHOT.jar \
     com.oracle.truffle.sl.launcher.SLMain \
     slnative
Use new native image flags.
