about summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-05-06 11:43:07 +0200
committerVladimír Čunát <v@cunat.cz>2022-05-06 11:43:07 +0200
commit976e65456a25614b4823349be44c24658fce2dce (patch)
tree61a840d7bfc917690b798ae752f475613504dec6 /pkgs/development/compilers/gcc
parentff5c4d340429c7ac795715d46b97d9556c6648c7 (diff)
gcc11: downgrade to 11.2.0 also on x86_64-darwin
https://hydra.nixos.org/build/175546330
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/11/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/gcc/11/default.nix b/pkgs/development/compilers/gcc/11/default.nix
index ba4b10cf73ea8..607c9eeac2f07 100644
--- a/pkgs/development/compilers/gcc/11/default.nix
+++ b/pkgs/development/compilers/gcc/11/default.nix
@@ -56,7 +56,8 @@ let majorVersion = "11";
     # updated version is not available. Keep aarch64-darwin on 11.2.0 so the
     # large body of packages which depend on gfortran are still functional
     # until GCC 12 is the default.
-    version = if (stdenv.isDarwin && stdenv.isAarch64) then
+    # On x86_64-darwin, building libgcc suffers from some different issues with 11.3.0.
+    version = if stdenv.isDarwin then
       "${majorVersion}.2.0" else "${majorVersion}.3.0";
 
     inherit (stdenv) buildPlatform hostPlatform targetPlatform;
@@ -96,7 +97,7 @@ stdenv.mkDerivation ({
 
   src = fetchurl {
     url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz";
-    sha256 = if (stdenv.isDarwin && stdenv.isAarch64)
+    sha256 = if stdenv.isDarwin
       then "sha256-0I7cU2tUw3KhAQ/2YZ3SdMDxYDqkkhK6IPeqLNo2+os="
       else "sha256-tHzygYaR9bHiHfK7OMeV+sLPvWQO3i0KXhyJ4zijrDk=";
   };