Unverified Commit 524ced7a authored by John Ericson's avatar John Ericson Committed by GitHub
Browse files

{clang,gcc}_multi: remove manual throws (#426902)

parents 9100ae78 63e69e43
Loading
Loading
Loading
Loading
+26 −32
Original line number Diff line number Diff line
@@ -5038,7 +5038,6 @@ with pkgs;

  wrapCCMulti =
    cc:
    if stdenv.targetPlatform.system == "x86_64-linux" then
    let
      # Binutils with glibc multi
      bintools = cc.bintools.override {
@@ -5060,20 +5059,15 @@ with pkgs;
      extraBuildCommands = ''
        echo "dontMoveLib64=1" >> $out/nix-support/setup-hook
      '';
      })
    else
      throw "Multilib ${cc.name} not supported for ‘${stdenv.targetPlatform.system}’";
    });

  wrapClangMulti =
    clang:
    if stdenv.targetPlatform.system == "x86_64-linux" then
    callPackage ../development/compilers/llvm/multi.nix {
      inherit clang;
      gcc32 = pkgsi686Linux.gcc;
      gcc64 = pkgs.gcc;
      }
    else
      throw "Multilib ${clang.cc.name} not supported for '${stdenv.targetPlatform.system}'";
    };

  gcc_multi = wrapCCMulti gcc;
  clang_multi = wrapClangMulti clang;