File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 592
592
(.setLastModified ^File out-file (util/last-modified url))
593
593
out-file)))
594
594
595
- ; ; TODO: it would be nice if we could consolidate requires-compilation?
596
- ; ; logic - David
597
595
(defn compile-from-jar
598
596
" Compile a file from a jar if necessary. Returns IJavaScript."
599
597
[jar-file {:keys [output-file] :as opts}]
600
598
(let [out-file (when output-file
601
599
(io/file (util/output-directory opts) output-file))
602
600
cacheable (ana/cacheable-files jar-file (util/ext jar-file) opts)]
603
601
(when (or (nil? out-file)
604
- (not (.exists ^File out-file))
605
- (not= (util/compiled-by-version out-file)
606
- (util/clojurescript-version ))
607
- (util/changed? jar-file out-file))
602
+ (comp/requires-compilation? jar-file out-file opts))
608
603
; ; actually compile from JAR
609
604
(if-not (:aot-cache opts)
610
605
(-compile (jar-file-to-disk jar-file (util/output-directory opts) opts) opts)
You can’t perform that action at this time.
0 commit comments