Function cacheHit [src]

Prefer cacheHitAndWatch unless you already added watch inputs separately from using the cache system.

Prototype

pub fn cacheHit(s: *Step, man: *Build.Cache.Manifest) !bool

Parameters

s: *Stepman: *Build.Cache.Manifest

Source

pub fn cacheHit(s: *Step, man: *Build.Cache.Manifest) !bool { s.result_cached = man.hit() catch |err| return failWithCacheError(s, man, err); return s.result_cached; }