diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 093a38207b76..1415f7c7e3f3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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)) {