crossLibcStdenv: Just use overrideCC

Now that we don't hackily override `mkDerivation`, the TODO is solved
and we just can!
This commit is contained in:
John Ericson 2018-07-24 16:39:13 -04:00
parent c12b50b267
commit 839f96a4c5

View file

@ -6334,13 +6334,7 @@ with pkgs;
{ substitutions = { gcc = gcc-unwrapped; }; }
../development/compilers/gcc/libstdc++-hook.sh;
# Can't just overrideCC, because then the stdenv-cross mkDerivation will be
# thrown away. TODO: find a better solution for this.
crossLibcStdenv = buildPackages.makeStdenvCross {
inherit (buildPackages.buildPackages) stdenv;
inherit buildPlatform hostPlatform targetPlatform;
cc = buildPackages.gccCrossStageStatic;
};
crossLibcStdenv = overrideCC stdenv buildPackages.gccCrossStageStatic;
# The GCC used to build libc for the target platform. Normal gccs will be
# built with, and use, that cross-compiled libc.