CCache support #80

Open
opened 2024-10-23 15:58:10 +02:00 by rarias · 0 comments
Owner

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.

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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rarias/jungle#80
No description provided.