File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 22442244 (assoc :opts-cache " cljsc_opts.edn" )
22452245
22462246 (nil? (:aot-cache opts))
2247- (assoc :aot-cache true )
2247+ (assoc :aot-cache ( util/cljs-built-dep? ) )
22482248
22492249 (contains? opts :modules )
22502250 (ensure-module-opts )
Original file line number Diff line number Diff line change 3030 0
3131 (Math/abs (hash (slurp file)))))
3232
33+ (def ^:private synthethetic-version-prefix " 0.0." )
34+
3335(def ^:private synthetic-clojurescript-version
34- (delay (str " 0.0. " (reduce + (map file-hash (file-seq (main-src-directory )))))))
36+ (delay (str synthethetic-version-prefix (reduce + (map file-hash (file-seq (main-src-directory )))))))
3537
3638(defn ^String clojurescript-version
3739 " Returns clojurescript version as a printable string."
4951 " -SNAPSHOT" ))
5052 @synthetic-clojurescript-version))
5153
54+ (defn- synthetic-version? []
55+ (string/starts-with? (clojurescript-version ) synthethetic-version-prefix))
56+
57+ (defn cljs-built-dep?
58+ " Returns true if ClojureScript itself is a built dep."
59+ []
60+ (not (synthetic-version? )))
61+
5262(defn ^String compiled-by-version [f]
5363 (with-open [reader (io/reader f)]
5464 (let [match (some->> reader line-seq first
You can’t perform that action at this time.
0 commit comments