File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2244
2244
(assoc :opts-cache " cljsc_opts.edn" )
2245
2245
2246
2246
(nil? (:aot-cache opts))
2247
- (assoc :aot-cache true )
2247
+ (assoc :aot-cache ( util/cljs-built-dep? ) )
2248
2248
2249
2249
(contains? opts :modules )
2250
2250
(ensure-module-opts )
Original file line number Diff line number Diff line change 30
30
0
31
31
(Math/abs (hash (slurp file)))))
32
32
33
+ (def ^:private synthethetic-version-prefix " 0.0." )
34
+
33
35
(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 )))))))
35
37
36
38
(defn ^String clojurescript-version
37
39
" Returns clojurescript version as a printable string."
49
51
" -SNAPSHOT" ))
50
52
@synthetic-clojurescript-version))
51
53
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
+
52
62
(defn ^String compiled-by-version [f]
53
63
(with-open [reader (io/reader f)]
54
64
(let [match (some->> reader line-seq first
You can’t perform that action at this time.
0 commit comments