summary refs log tree commit diff
path: root/pkgs/stdenv/linux
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-02-22 22:30:29 -0800
committerAdam Joseph <adam@westernsemico.com>2023-04-02 13:49:53 -0700
commit96588eb3de55931e8b92a4f78f44342598f7ed5c (patch)
tree1e8c6fbddb332593ea5fb5097561d2dd6d85fe93 /pkgs/stdenv/linux
parentfed2300bea5e0451c6fe55535f0a8f471a5d8c35 (diff)
downloadnixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.tar
nixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.tar.gz
nixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.tar.bz2
nixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.tar.lz
nixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.tar.xz
nixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.tar.zst
nixpkgs-96588eb3de55931e8b92a4f78f44342598f7ed5c.zip
gcc: add common/checksum.nix
This commit adds `gcc/common/checksum.nix`, which contains code
common to both gcc11 and gcc12, implementing the `enableChecksum`
feature.

When gcc's built-in bootstrap (`--enable-bootstrap`) is used, gcc
compiles itself three times and compares a hash of the unlinked `.o`
files from the second and third compilation.  The
`enableChecksum=true` parameter performs the same comparison as part
of the `postInstall` phase.

Notably, `enableChecksum=true` can be used with `enableBootstrap=false`.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/stdenv/linux')
-rw-r--r--pkgs/stdenv/linux/default.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index 20aa670ba94..181936de5de 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -331,8 +331,6 @@ in
         gmp      = prev.gmp.override { cxx = false; };
         gcc-unwrapped =
           (prev.gcc-unwrapped.override (commonGccOverrides // {
-            enablePlugins = false;
-
             # The most logical name for this package would be something like
             # "gcc-stage1".  Unfortunately "stage" is already reserved for the
             # layers of stdenv, so using "stage" in the name of this package