summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/11
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2023-02-18 08:51:38 +0000
committerGitHub <noreply@github.com>2023-02-18 08:51:38 +0000
commit2ea34825020a74e5d62fb1a2fe819b165803ffd1 (patch)
treebb901855af6df6c606916c7e9aec2bf5cdfeaffe /pkgs/development/compilers/gcc/11
parent770622d76ce21d9d0255072e4d04062e235ec39f (diff)
parent37fe1613cfd9bb3e7031d60b1b7316fee090b00e (diff)
downloadnixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.tar
nixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.tar.gz
nixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.tar.bz2
nixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.tar.lz
nixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.tar.xz
nixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.tar.zst
nixpkgs-2ea34825020a74e5d62fb1a2fe819b165803ffd1.zip
Merge pull request #216136 from amjoseph-nixpkgs/pr/gcc/enableBootstrap
gcc: expose --disable-bootstrap as disableBootstrap
Diffstat (limited to 'pkgs/development/compilers/gcc/11')
-rw-r--r--pkgs/development/compilers/gcc/11/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc/11/default.nix b/pkgs/development/compilers/gcc/11/default.nix
index 3ae54fc3b91..15b21fcdbea 100644
--- a/pkgs/development/compilers/gcc/11/default.nix
+++ b/pkgs/development/compilers/gcc/11/default.nix
@@ -48,6 +48,7 @@ with builtins;
 
 let majorVersion = "11";
     version = "${majorVersion}.3.0";
+    disableBootstrap = !(with stdenv; targetPlatform == hostPlatform && hostPlatform == buildPlatform);
 
     inherit (stdenv) buildPlatform hostPlatform targetPlatform;
 
@@ -115,6 +116,7 @@ let majorVersion = "11";
         enableMultilib
         enablePlugin
         enableShared
+        disableBootstrap
         fetchpatch
         fetchurl
         gettext