Skip to content

Commit

Permalink
now that we have deterministic compilation order we don't need to tra…
Browse files Browse the repository at this point in the history
…ck 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.
  • Loading branch information
dnolen committed Jun 3, 2016
1 parent 74ef21b commit 40a137a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/clojure/cljs/analyzer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2831,11 +2831,7 @@
(let [out-src (util/to-target-file output-dir (parse-ns src))]
(if (not (.exists out-src))
true
(if (util/changed? src cache)
true
(let [version' (util/compiled-by-version cache)
version (util/clojurescript-version)]
(and version (not= version version'))))))))))
(util/changed? src cache)))))))

#?(:clj
(defn write-analysis-cache
Expand Down

0 comments on commit 40a137a

Please sign in to comment.