enso/distribution/bin/enso
Hubert Plociniczak d6f7afc624
Open Java modules for Snowflake setup (#9664)
# Important Notes
Some workarounds are being considered but we need this change sooner than later.
2024-04-16 21:01:32 +00:00

13 lines
426 B
Plaintext
Executable File

COMP_PATH=$(dirname "$0")/../component
EXTRA_OPTS="-Dgraal.PrintGraph=Network"
for opt in "$@"; do
if [ "$opt" = "--dump-graphs" ]; then
EXTRA_OPTS="$EXTRA_OPTS -Dgraal.Dump=:1"
fi
done
JAVA_OPTS="--add-opens=java.base/java.nio=ALL-UNNAMED $JAVA_OPTS"
exec java --module-path $COMP_PATH -Dorg.graalvm.language.enso.home=$COMP_PATH $EXTRA_OPTS $JAVA_OPTS -m org.enso.runtime/org.enso.EngineRunnerBootLoader "$@"
exit