gcc-*: Clean up crossStageStatic logic

54282b9610e80b1ed93136319e24cb79c5bbcc33 tread carefuly to avoid a mass
rebuild. This embraces the mass rebuild to clean things up.
This commit is contained in:
John Ericson 2018-09-05 14:28:04 -04:00 committed by Jan Malakhovski
parent b2c7a5a271
commit b14db1b0ba
8 changed files with 8 additions and 22 deletions

View File

@ -201,9 +201,7 @@ stdenv.mkDerivation ({
'' ''
else null; else null;
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler langJava crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];

View File

@ -210,9 +210,7 @@ stdenv.mkDerivation ({
'' ''
else null; else null;
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler langJava crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];

View File

@ -215,9 +215,7 @@ stdenv.mkDerivation ({
) )
else null; else null;
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler langJava crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];

View File

@ -216,9 +216,7 @@ stdenv.mkDerivation ({
) )
else null; else null;
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler langJava crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];

View File

@ -189,9 +189,7 @@ stdenv.mkDerivation ({
) )
else ""); else "");
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];

View File

@ -184,9 +184,7 @@ stdenv.mkDerivation ({
) )
else ""); else "");
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];

View File

@ -131,7 +131,7 @@ if test "$noSysDirs" = "1"; then
) )
fi fi
if test -n "${targetConfig-}" -a "$crossStageStatic" == 1; then if test "$crossStageStatic" == 1; then
# We don't want the gcc build to assume there will be a libc providing # We don't want the gcc build to assume there will be a libc providing
# limits.h in this stagae # limits.h in this stagae
makeFlagsArray+=( makeFlagsArray+=(

View File

@ -154,9 +154,7 @@ stdenv.mkDerivation ({
'' ''
else null; else null;
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild, inherit noSysDirs staticCompiler crossStageStatic
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
inherit noSysDirs staticCompiler
libcCross crossMingw; libcCross crossMingw;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];