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

This commit is contained in:
Vladimír Čunát 2022-06-19 11:29:42 +02:00
commit a824e734ea
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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);