mirror of
https://github.com/NixOS/nix
synced 2025-07-02 21:51:50 +02:00
add ccacheStdenv
when using ccache, rebuild time has been measured 89% faster while not slowing the speed of cold builds
This commit is contained in:
parent
fbd0a6c6e2
commit
e04b38f789
2 changed files with 5 additions and 2 deletions
|
@ -42,7 +42,7 @@ $ nix develop
|
|||
```
|
||||
|
||||
To get a shell with a different compilation environment (e.g. stdenv,
|
||||
gccStdenv, clangStdenv, clang11Stdenv):
|
||||
gccStdenv, clangStdenv, clang11Stdenv, ccacheStdenv):
|
||||
|
||||
```console
|
||||
$ nix-shell -A devShells.x86_64-linux.clang11StdenvPackages
|
||||
|
@ -54,6 +54,9 @@ or if you have a flake-enabled nix:
|
|||
$ nix develop .#clang11StdenvPackages
|
||||
```
|
||||
|
||||
Note: you can use `ccacheStdenv` to drastically improve rebuild
|
||||
time. By default, ccache keeps artifacts in `~/.cache/ccache/`.
|
||||
|
||||
To build Nix itself in this shell:
|
||||
|
||||
```console
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue