nubank / vessel

A containerization tool for Clojure applications
Apache License 2.0
43 stars 1 forks source link

Vessel lacks a mechanism to set options for the Clojure compiler #33

Closed miorimmax closed 10 months ago

miorimmax commented 11 months ago

The Clojure compiler can be controlled via the use of several compiler flags. At runtime these are stored in the dynamic var clojure.core/compiler-options, that we can bind defining our own settings. Please refer to the Clojure documentation for more details.

Currently, we don't have a mechanism to provide these compiler options to Vessel: it does not bind the compiler-options dynamic var and it does not have a mechanism to provide command line options to the subprocess that performs compilation.

It would be useful for us to have such a mechanism, so that we can enable features like direct linking or eliding metas.