Commit Graph

4 Commits

Author SHA1 Message Date
Steven Wu
6cf7163aa1 [Option] Rename -cache-remarks to -Rcache-compile-job
Rename swift-frontend option for caching remarks to -Rcache-compile-job.
2023-07-18 13:36:17 -07:00
Steven Wu
e448e7f849 [Cache] Emit cache-hit remark for diagnostics 2023-07-18 13:36:17 -07:00
Steven Wu
b78b569450 [CAS] Consolidate compile cache flags
Rename `-enable-cas` to `-compile-cache-job` to align with clang option
names and promote that to a new driver only flag.

Few other additions to driver flag for caching behaviors:
* `-compile-cache-remarks`: now cache hit/miss remarks are guarded behind
  this flag
* `-compile-cache-skip`: skip replaying from the cache. Useful as a
  debugging tool to do the compilation using CAS inputs even the output
  is a hit from the cache.
2023-06-26 10:34:27 -07:00
Steven Wu
371e3c9352 [CAS] Teach swift-frontend to replay result from cache 2023-05-15 13:42:15 -07:00