mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
gcc11: mark as bad on aarch64-darwin when building a cross-compiler
This commit is contained in:
parent
fe27958aed
commit
4a538d6b3d
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue