Unverified Commit 80bf97b8 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

libcCross: set to `null` rather than using `assert` in nonsense scenarios (#340331)

parents 93961c50 fa8b6b8e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)) {