Move wrapGCC helper up
This commit doesn't change the outhash (or drvhash) of the stdenv.
This commit is contained in:
parent
350022247a
commit
49e5837780
@ -66,6 +66,18 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# A helper function to call gcc-wrapper.
|
||||||
|
wrapGCC =
|
||||||
|
{ gcc, libc, binutils, coreutils, name }:
|
||||||
|
|
||||||
|
lib.makeOverridable (import ../../build-support/gcc-wrapper) {
|
||||||
|
nativeTools = false;
|
||||||
|
nativeLibc = false;
|
||||||
|
inherit gcc binutils coreutils libc name;
|
||||||
|
stdenv = stage0.stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# This function builds the various standard environments used during
|
# This function builds the various standard environments used during
|
||||||
# the bootstrap. In all stages, we build an stdenv and the package
|
# the bootstrap. In all stages, we build an stdenv and the package
|
||||||
# set that can be built with that stdenv.
|
# set that can be built with that stdenv.
|
||||||
@ -101,6 +113,7 @@ rec {
|
|||||||
};
|
};
|
||||||
in { stdenv = thisStdenv; pkgs = thisPkgs; };
|
in { stdenv = thisStdenv; pkgs = thisPkgs; };
|
||||||
|
|
||||||
|
|
||||||
# Build a dummy stdenv with no GCC or working fetchurl. This is
|
# Build a dummy stdenv with no GCC or working fetchurl. This is
|
||||||
# because we need a stdenv to build the GCC wrapper and fetchurl.
|
# because we need a stdenv to build the GCC wrapper and fetchurl.
|
||||||
stage0 = stageFun {
|
stage0 = stageFun {
|
||||||
@ -124,18 +137,6 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# A helper function to call gcc-wrapper.
|
|
||||||
wrapGCC =
|
|
||||||
{ gcc, libc, binutils, coreutils, name }:
|
|
||||||
|
|
||||||
lib.makeOverridable (import ../../build-support/gcc-wrapper) {
|
|
||||||
nativeTools = false;
|
|
||||||
nativeLibc = false;
|
|
||||||
inherit gcc binutils coreutils libc name;
|
|
||||||
stdenv = stage0.stdenv;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Create the first "real" standard environment. This one consists
|
# Create the first "real" standard environment. This one consists
|
||||||
# of bootstrap tools only, and a minimal Glibc to keep the GCC
|
# of bootstrap tools only, and a minimal Glibc to keep the GCC
|
||||||
# configure script happy.
|
# configure script happy.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user