CLJS Analyzer does not correctly detect cache hits for analyzed spec files

Description

When Analyzing a cljs file which contains only (cljs.spec.alpha/def ...) forms and no clojure core (def ...) special forms, the Analyzer does not determine the source file to have been analyzed on https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L4021. When this is combined with the :cache-analysis true compiler option, it results in the analysis cache continually being repopulated from disk, and in certain degenerate cases, poor compilation performance.

Environment

OS X

Status

Assignee

David Nolen

Reporter

Alexander Redington

Labels

Approval

None

Patch

Code and Test

Priority

Minor
Configure