Adding ccache-like output caching to dmd
Max Haughton
maxhaton at gmail.com
Tue Dec 29 00:31:51 UTC 2020
On Monday, 28 December 2020 at 23:14:02 UTC, Per Nordlöw wrote:
> Has anyone considered integrating into a `dmd` a ccache-like
> caching of output files indexed by digests based on
>
> - environment variables,
> - process arguments which, in turn, decide
> - input file contents (including import files detected upon
> first uncached compile)
> - dmd compiler binary fingerprint
> - ...probably something more I missed
>
> Initial call stores that list alongside content hash and
> resulting binary(s).
>
> If not, would anyone have any strong objections against adding
> this?
If it's implemented in a sensible manner I don't see why not. My
only worry would be that dmd code tends to be a weird blend of C,
C++, and Java - if the cache is properly wrapped up in a way that
compartmentalizes the things that can go wrong then go for it.
More information about the Digitalmars-d
mailing list