Skip to content

Commit 40a137a

Browse files
author
dnolen
committed
now that we have deterministic compilation order we don't need to track versioning
information in analysis caches. If some source changes, the analysis will always be updated - so all we care about is whether the analysis cache and original source are out of sync.
1 parent 74ef21b commit 40a137a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/clojure/cljs/analyzer.cljc

+1-5
Original file line numberDiff line numberDiff line change
@@ -2831,11 +2831,7 @@
28312831
(let [out-src (util/to-target-file output-dir (parse-ns src))]
28322832
(if (not (.exists out-src))
28332833
true
2834-
(if (util/changed? src cache)
2835-
true
2836-
(let [version' (util/compiled-by-version cache)
2837-
version (util/clojurescript-version)]
2838-
(and version (not= version version'))))))))))
2834+
(util/changed? src cache)))))))
28392835

28402836
#?(:clj
28412837
(defn write-analysis-cache

0 commit comments

Comments
 (0)