Skip to content

Commit 1849c17

Browse files
author
dnolen
committed
CLJS-2601: Shared AOT cache: The file out/cljs/core.cljc does not exist
fix, but include note that the strategy is unlikely to work for Windows
1 parent 1969c36 commit 1849c17

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,8 @@
581581
".cljs" ".aot_cache" (util/clojurescript-version)
582582
(build-affecting-options-sha path opts))))
583583

584+
;; TODO: we use a URL to get a bunch of file paths, the forward slashes probably
585+
;; aren't going to work for Windows
584586
(defn cacheable-files
585587
([rsrc ext]
586588
(cacheable-files rsrc ext nil))
@@ -591,7 +593,11 @@
591593
(into {}
592594
(map
593595
(fn [[k v]]
594-
[k (io/file path (str name v))]))
596+
[k (io/file path
597+
(if (and (= "cljs/core$macros" name)
598+
(= :source k))
599+
(str "cljs/core.cljc")
600+
(str name v)))]))
595601
{:source (str "." ext)
596602
:output-file ".js"
597603
:source-map ".js.map"

0 commit comments

Comments
 (0)