Skip to content

Commit 6e2044c

Browse files
committed
fixed with-bindings to not hardwire compile-time compile path
1 parent 6e5647c commit 6e2044c

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/clj/clojure/main.clj

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@
1616
"Executes body in the context of thread-local bindings for several vars
1717
that often need to be set!"
1818
[& body]
19-
(let [compile-path
20-
(System/getProperty "clojure.compile.path" "classes")]
21-
`(binding [*ns* *ns*
22-
*warn-on-reflection* *warn-on-reflection*
23-
*print-meta* *print-meta*
24-
*print-length* *print-length*
25-
*print-level* *print-level*
26-
*compile-path* ~compile-path
27-
*command-line-args* *command-line-args*
28-
*1 nil
29-
*2 nil
30-
*3 nil
31-
*e nil]
32-
~@body)))
19+
`(binding [*ns* *ns*
20+
*warn-on-reflection* *warn-on-reflection*
21+
*print-meta* *print-meta*
22+
*print-length* *print-length*
23+
*print-level* *print-level*
24+
*compile-path* (System/getProperty "clojure.compile.path" "classes")
25+
*command-line-args* *command-line-args*
26+
*1 nil
27+
*2 nil
28+
*3 nil
29+
*e nil]
30+
~@body))
3331

3432
(defn- root-cause
3533
"Returns the initial cause of an exception or error by peeling off all of

0 commit comments

Comments
 (0)