diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-12-02 18:42:00 -0500 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-12-02 18:42:00 -0500 |
commit | 4a538d6b3df931c87fb38b14fa1d0038d39f45e5 (patch) | |
tree | c7a07894629a67127c7d29f64e3a855af25a1798 /pkgs/development/compilers/gcc | |
parent | fe27958aed65ac531732544dd6a8b9c20da4d813 (diff) | |
download | nixlib-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.nix | 2 |
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. |