From 40a137a14e161cbaf9987bb018376cedeb4af3e1 Mon Sep 17 00:00:00 2001 From: dnolen Date: Fri, 3 Jun 2016 15:19:32 -0400 Subject: [PATCH] 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. --- src/main/clojure/cljs/analyzer.cljc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/clojure/cljs/analyzer.cljc b/src/main/clojure/cljs/analyzer.cljc index a581e7d941..fb812c6b4f 100644 --- a/src/main/clojure/cljs/analyzer.cljc +++ b/src/main/clojure/cljs/analyzer.cljc @@ -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