From 4a538d6b3df931c87fb38b14fa1d0038d39f45e5 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 2 Dec 2023 18:42:00 -0500 Subject: [PATCH] gcc11: mark as bad on aarch64-darwin when building a cross-compiler --- pkgs/development/compilers/gcc/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/gcc/default.nix b/pkgs/development/compilers/gcc/default.nix index 46b2404e99e5..de82b1795ba3 100644 --- a/pkgs/development/compilers/gcc/default.nix +++ b/pkgs/development/compilers/gcc/default.nix @@ -420,6 +420,8 @@ lib.pipe ((callFile ./common/builder.nix {}) ({ ; } // lib.optionalAttrs (!atLeast11) { badPlatforms = if !(is48 || is49) then [ "aarch64-darwin" ] else lib.platforms.darwin; + } // lib.optionalAttrs is11 { + badPlatforms = if targetPlatform != hostPlatform then [ "aarch64-darwin" ] else [ ]; }; } // lib.optionalAttrs (!atLeast10 && stdenv.targetPlatform.isDarwin) { # GCC <10 requires default cctools `strip` instead of `llvm-strip` used by Darwin bintools.