diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-02-22 22:30:29 -0800 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-04-02 13:49:53 -0700 |
commit | 5f57c2e0f97a83bf5691ac3a29da6ef9b44535c4 (patch) | |
tree | 0299bc9c124cdddbb1fb3c937f7d9aa3ad5e841b /pkgs/top-level/release-small.nix | |
parent | 96588eb3de55931e8b92a4f78f44342598f7ed5c (diff) |
pkgs/test/stdenv/default.nix: add gcc-stageCompare
This commit adds a derivation `gcc-stageCompare` to `pkgs/test/stdenv/default.nix`. It is important to always build this derivation whenever building `stdenv`! Because we are using a Nix-driven bootstrap instead of gcc's built-in `--enable-bootstrap`, the `gcc` derivation no longer performs the post-self-compilation sanity check. You must build this derivation in order to perform that sanity check. The major benefit of this new approach is that the sanity check (which involves a third compilation of gcc) can be performed *concurrently* with all packages that depend on `stdenv`, rather than serially. Since `stdenv` has very little derivation-level parallelism it cannot take advantage of more than one or perhaps two builders. If you have three or more builders this commit will reduce the time-to-rebuild-stdenv by around 20% (one of three gcc rebuilds is removed from the critical path, and stdenv's build time is dominated by roughly 3*gcc + 1*binutils + 1*bison-test-suite). Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/top-level/release-small.nix')
-rw-r--r-- | pkgs/top-level/release-small.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/release-small.nix b/pkgs/top-level/release-small.nix index 7bf4a234bb657..333e285cef0a0 100644 --- a/pkgs/top-level/release-small.nix +++ b/pkgs/top-level/release-small.nix @@ -150,5 +150,5 @@ with import ./release-lib.nix { inherit supportedSystems nixpkgsArgs; }; xfsprogs = linux; xkeyboard_config = linux; zip = all; - + tests-stdenv-gcc-stageCompare = all; } )) |