about summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-12-02 18:42:00 -0500
committerRandy Eckenrode <randy@largeandhighquality.com>2023-12-02 18:42:00 -0500
commit4a538d6b3df931c87fb38b14fa1d0038d39f45e5 (patch)
treec7a07894629a67127c7d29f64e3a855af25a1798 /pkgs/development/compilers/gcc
parentfe27958aed65ac531732544dd6a8b9c20da4d813 (diff)
downloadnixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.tar
nixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.tar.gz
nixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.tar.bz2
nixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.tar.lz
nixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.tar.xz
nixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.tar.zst
nixlib-4a538d6b3df931c87fb38b14fa1d0038d39f45e5.zip
gcc11: mark as bad on aarch64-darwin when building a cross-compiler
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/default.nix2
1 files changed, 2 insertions, 0 deletions
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.