📎 Allow specify the build optimization leven using env vars.

This commit is contained in:
Andrey Antukh 2021-11-12 13:31:28 +01:00
parent 03e6a187c5
commit c57219a356

View file

@ -4,7 +4,6 @@
:jvm-opts ["-Xmx700m" "-Xms100m" "-XX:+UseSerialGC" "-XX:-OmitStackTraceInFastThrow"] :jvm-opts ["-Xmx700m" "-Xms100m" "-XX:+UseSerialGC" "-XX:-OmitStackTraceInFastThrow"]
:dev-http {8888 "classpath:public"} :dev-http {8888 "classpath:public"}
:builds :builds
{:main {:main
{:target :browser {:target :browser
@ -33,6 +32,7 @@
goog.debug.LOGGING_ENABLED true} goog.debug.LOGGING_ENABLED true}
:compiler-options :compiler-options
{:fn-invoke-direct true {:fn-invoke-direct true
:optimizations #shadow/env ["PENPOT_BUILD_OPTIMIZATIONS" :as :keyword :default :advanced]
:source-map true :source-map true
:elide-asserts true :elide-asserts true
:anon-fn-naming-policy :off :anon-fn-naming-policy :off