Merge #176010: binutils: Reduce closure size when building for cross platform
This commit is contained in:
commit
a824e734ea
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue