gcc: kludge to prevent mass-rebuild

This commit is reverted in #240596 (which must go to staging).
This commit is contained in:
Adam Joseph 2023-06-16 14:52:41 -07:00
parent 63305d00d3
commit 96a2f1b4e1
11 changed files with 42 additions and 12 deletions

View file

@ -214,7 +214,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -227,7 +227,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -271,7 +271,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { }) depsBuildBuild nativeBuildInputs depsBuildTarget buildInputs depsTargetTarget;

View file

@ -265,7 +265,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { }) depsBuildBuild nativeBuildInputs depsBuildTarget buildInputs depsTargetTarget;

View file

@ -232,7 +232,10 @@ lib.pipe (stdenv.mkDerivation ({
''
else null;
inherit noSysDirs staticCompiler langJava withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -253,7 +253,10 @@ lib.pipe (stdenv.mkDerivation ({
''
else null;
inherit noSysDirs staticCompiler langJava withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -269,7 +269,10 @@ lib.pipe (stdenv.mkDerivation ({
))
);
inherit noSysDirs staticCompiler langJava withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -218,7 +218,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -199,7 +199,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -213,7 +213,10 @@ lib.pipe (stdenv.mkDerivation ({
)
'';
inherit noSysDirs staticCompiler withoutTargetLibc
# kludge to prevent a mass-rebuild; will be removed in a PR sent to staging
crossStageStatic = withoutTargetLibc;
inherit noSysDirs staticCompiler
libcCross crossMingw;
inherit (callFile ../common/dependencies.nix { })

View file

@ -135,7 +135,7 @@ if test "$noSysDirs" = "1"; then
)
fi
if test "$withoutTargetLibc" == 1; then
if test "$crossStageStatic" == 1; then
# We don't want the gcc build to assume there will be a libc providing
# limits.h in this stage
makeFlagsArray+=(
@ -167,7 +167,7 @@ preConfigure() {
rm -Rf zlib
fi
if test -n "$crossMingw" -a -n "$withoutTargetLibc"; then
if test -n "$crossMingw" -a -n "$crossStageStatic"; then
mkdir -p ../mingw
# --with-build-sysroot expects that:
cp -R $libcCross/include ../mingw