Skip to content

ccache-like caching #22

Description

@CyberShadow

ccache is a wrapper around C/C++ compilers and related tools which caches the result of compilation based on the file contents, so if you compile source code, then delete / redownload / unpack to the same location and recompile, the second compilation will be cached.

It would be useful to have something similar in rund, probably as a mode enabled with a switch. Its effect would be:

  1. Include contents of files when calculating the cache directory
  2. Stop looking at timestamps when deciding whether something should be rebuilt
  3. Make the compilation target always be the cache directory, even with -od/-of, and then copy artifacts out if necessary.

ccache also has a maximum cache size limit (upon hitting which it starts deleting old results), but that can be managed outside of rund or added later.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions