4.11. Derived-file caching

SCons can maintain a cache directory of target files which may be shared among multiple builds. This reduces build times by allowing developers working on a project together to share common target files:


When a target file is generated, a copy is added to the cache. When generating a target file, if SCons determines that a file that has been built with the exact same dependencies already exists in the specified cache, SCons will copy the cached file rather than re-building the target.

Command-line options exist to modify the SCons caching behavior for a specific build, including disabling caching, building dependencies in random order, and displaying commands as if cached files were built.