CCache support #80
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ccache allows caching previous calls to the compiler so a file doesn't need to be rebuilt twice. This is specially handy for slow rebuilds like clang or the kernel.
However, the current ccache infrastructure only works if we manually override the stdenv to ccacheStdenv. This is not a very good approach to nixos-riscv or bscpkgs where we don't write anything depending on the build platform, so they are portable.
A better solution would be to change in upstream to always check if ccache is available (then use it), otherwise built as usual. That way we transparently use the ccache for all packages that may need to be rebuilt. This won't invalidate nix store paths from the nix cache.