gcc11: mark as bad on aarch64-darwin when building a cross-compiler

This commit is contained in:
Randy Eckenrode 2023-12-02 18:42:00 -05:00
parent fe27958aed
commit 4a538d6b3d
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -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.