[CLJ-1274] Unable to set compiler options via system properties except for AOT compilation Created: 02/Oct/13 Updated: 29/Aug/14 Resolved: 29/Aug/14
|Affects Version/s:||Release 1.5|
|Fix Version/s:||Release 1.7|
|Reporter:||Howard Lewis Ship||Assignee:||Unassigned|
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!
|Comment by Howard Lewis Ship [ 02/Oct/13 4:52 PM ]|
Obviously, that's supposed to be *compiler-options*.
|Comment by Howard Lewis Ship [ 02/Dec/13 4: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.
|Comment by Stuart Halloway [ 27/Jun/14 1: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.