binutils: Reduce closure size when building for cross platform

This commit is contained in:
Asad Mehmood 2022-06-02 23:32:30 +01:00
parent 295b42b8df
commit be560224be
No known key found for this signature in database
GPG key ID: 8836293CE56DE642

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