mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
libcCross: set to null
rather than using assert
in nonsense scenarios (#340331)
This commit is contained in:
commit
80bf97b8c0
@ -20300,7 +20300,10 @@ with pkgs;
|
||||
else if name == "relibc" then targetPackages.relibc or relibc
|
||||
else throw "Unknown libc ${name}";
|
||||
|
||||
libcCross = assert stdenv.targetPlatform != stdenv.buildPlatform; libcCrossChooser stdenv.targetPlatform.libc;
|
||||
libcCross =
|
||||
if stdenv.targetPlatform == stdenv.buildPlatform
|
||||
then null
|
||||
else libcCrossChooser stdenv.targetPlatform.libc;
|
||||
|
||||
threadsCross =
|
||||
lib.optionalAttrs (stdenv.targetPlatform.isMinGW && !(stdenv.targetPlatform.useLLVM or false)) {
|
||||
|
Loading…
Reference in New Issue
Block a user