Skip to content

Commit 73d844f

Browse files
committed
fix cross platform issue w/ aot cache logic, fix wrong resource
path for aot cache
1 parent a43ae53 commit 73d844f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/clj/cljs/analyzer.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ argument, which the reader will use in any emitted errors."
18931893
(if-let [core-cache
18941894
(and (util/url? src)
18951895
(.endsWith (.getPath ^URL src) (str "cljs" File/separator "core.cljs"))
1896-
(io/resource "cljs/aot/core.cljs.cache.edn"))]
1896+
(io/resource "aot_cljs/cljs/core.cljs.cache.edn"))]
18971897
core-cache
18981898
(let [ns-info (parse-ns src)]
18991899
(io/file (str (util/to-target-file output-dir ns-info "cljs") ".cache.edn"))))))

src/clj/cljs/closure.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ should contain the source for the given namespace name."
15601560
(comp/compile-file src dest
15611561
{:source-map true
15621562
:cache-analysis true
1563-
:output-dir "src/aot_cljs"}))))
1563+
:output-dir (sr "src" File/separator "aot_cljs")}))))
15641564

15651565
(comment
15661566

0 commit comments

Comments
 (0)