-
-
Notifications
You must be signed in to change notification settings - Fork 180
Clojure Compiler Options
Ben Sima edited this page Feb 23, 2016
·
1 revision
One benefit of Boot over Lein is that Boot allows setting compiler options using binding
. Here is an example Boot file:
(set-env! :dependencies [[org.clojure/clojure "1.7.0"]]
:source-paths #{"src"})
(require '[my.app.core :as m])
(def my-compiler-opts
{:disable-locals-clearing true})
(deftask dev []
(binding [clojure.core/*compiler-options* my-compiler-opts]
(m/run-my-app)))
Fine-grained control of compiler options like this is not possible with Leiningen. A list of compiler options is available at Clojure.org
You can find other developers and users in the #hoplon
channel on freenode IRC or the boot slack channel.
If you have questions or need help, please visit the Discourse site.
- Environments
- Boot environment
- Java environment
- Tasks
- Built-ins
- Third-party
- Tasks Options
- Filesets
- Target Directory
- Pods
- Boot Exceptions
- Configuring Boot
- Updating Boot
- Setting Clojure version
- JVM Options
- S3 Repositories
- Scripts
- Task Writer's Guide
- Require inside Tasks
- Boot for Leiningen Users
- Boot in Leiningen Projects
- Repl reloading
- Repository Credentials and Deploying
- Snippets
- Troubleshooting
- FAQ
- API docs
- Core
- Pod
- Util