Unable to set compiler options via system properties except for AOT compilation

Description

The code that converts JVM system properties into keys under the *compiler-options* var is present only inside the clojure.lang.Compile class. This is a problem when using a debugger inside an IDE and not AOT compiling; specifying -Dclojure.compiler.disable-locals-clearing=true has no effect here when it would be most useful!

Patch: CLJ-1274.patch
Screened by: Stu

Environment

None

Attachments

1

Activity

Stuart Halloway June 27, 2014 at 7:45 PM

Patch is straightforward, marking screened.

I am left wondering if other options that are set only in Compile.java ought also to be moved.

Howard Lewis Ship December 2, 2013 at 10:03 PM

Changes initialization of {{*compiler-options*}} to occur statically inside Compiler; now available to all forms of Clojure, not just AOT compilation; however, the initial compiler-options value is now defined as a root binding, rather than a per-thread binding, which has slightly different semantics.

Howard Lewis Ship October 2, 2013 at 10:52 PM

Obviously, that's supposed to be compiler-options.

Completed

Details

Assignee

Reporter

Labels

Approval

Patch

Priority

Affects versions

Fix versions

Created October 2, 2013 at 10:46 PM
Updated August 29, 2014 at 3:24 PM
Resolved August 29, 2014 at 3:24 PM