Merge #176010: binutils: Reduce closure size when building for cross platform

main
Vladimír Čunát 2 years ago
commit a824e734ea
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 3
      pkgs/development/tools/misc/binutils/default.nix

@ -194,6 +194,9 @@ stdenv.mkDerivation {
# mass rebuild.
postFixup = "";
# Break dependency on pkgsBuildBuild.gcc when building a cross-binutils
stripDebugList = if stdenv.hostPlatform != stdenv.targetPlatform then "bin lib ${stdenv.hostPlatform.config}" else null;
# INFO: Otherwise it fails with:
# `./sanity.sh: line 36: $out/bin/size: not found`
doInstallCheck = (buildPlatform == hostPlatform) && (hostPlatform == targetPlatform);

Loading…
Cancel
Save