Skip to content

Commit a14bced

Browse files
author
dnolen
committed
need to compile to the right place
1 parent 517d623 commit a14bced

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
@@ -637,7 +637,7 @@
637637
(let [cache-path (cache-base-path opts)]
638638
(when-not (.exists (:output-file cacheable))
639639
(-compile (jar-file-to-disk jar-file cache-path opts)
640-
(assoc opts :output-dir cache-path)))
640+
(assoc opts :output-dir (util/path cache-path))))
641641
(doseq [[k ^File f] cacheable]
642642
(when (.exists f)
643643
(let [target (io/file (util/output-directory opts)
@@ -646,6 +646,7 @@
646646
(subs 1)))]
647647
(when (and (or ana/*verbose* (:verbose opts)) (= :out-file k))
648648
(util/debug-prn (str "Copying cached " f " to " target)))
649+
(util/mkdirs target)
649650
(spit target (slurp f))
650651
(.setLastModified target (util/last-modified jar-file)))))))
651652
;; have to call compile-file as it includes more IJavaScript

0 commit comments

Comments
 (0)