Skip to content

Commit 517d623

Browse files
author
dnolen
committed
update opts :output-dir when compiling to cache
1 parent 93544d6 commit 517d623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,8 @@
636636
;; actually compile from JAR
637637
(let [cache-path (cache-base-path opts)]
638638
(when-not (.exists (:output-file cacheable))
639-
(-compile (jar-file-to-disk jar-file cache-path opts) opts))
639+
(-compile (jar-file-to-disk jar-file cache-path opts)
640+
(assoc opts :output-dir cache-path)))
640641
(doseq [[k ^File f] cacheable]
641642
(when (.exists f)
642643
(let [target (io/file (util/output-directory opts)

0 commit comments

Comments
 (0)