diff --git a/project.clj b/project.clj index fe674043..253bb780 100644 --- a/project.clj +++ b/project.clj @@ -75,7 +75,8 @@ [com.opentable.components/otj-pg-embedded "0.13.3"]]}] :uberjar {:global-vars {*assert* false} :jvm-opts ["-Dclojure.compiler.direct-linking=true" - "-Dclojure.spec.skip-macros=true"] + "-Dclojure.spec.skip-macros=true" + "-Dborkdude.dynaload.aot=true"] :main babashka.main :aot :all} :reflection {:main babashka.impl.classes/generate-reflection-file}} diff --git a/script/compile b/script/compile index 6c8bf451..0d66c005 100755 --- a/script/compile +++ b/script/compile @@ -41,8 +41,7 @@ BABASHKA_BINARY=${BABASHKA_BINARY:-"bb"} args=( "-jar" "$BABASHKA_JAR" "-H:Name=$BABASHKA_BINARY" "-H:+ReportExceptionStackTraces" - "-J-Dclojure.spec.skip-macros=true" - "-J-Dclojure.compiler.direct-linking=true" + "-J-Dborkdude.dynaload.aot=true" "-H:IncludeResources=BABASHKA_VERSION" "-H:IncludeResources=SCI_VERSION" "-H:ReflectionConfigurationFiles=reflection.json"