git.iko.soy/typeable/nixpkgs
on master help sign in
all-packages: Remove gccCrossStageFinal; any gcc will not work
commitb9bf90ca6c7d980c9ff34d67fb3950c47b6be6b8 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateWed 20 Sep 2017, 15:31 (9 years ago) parent88a0e55
4 files changed+7−10
pkgs/os-specific/gnu/default.nix+2−2 pkgs/stdenv/cross/default.nix+1−1 pkgs/top-level/all-packages.nix+3−6 pkgs/top-level/release-cross.nix+1−1
pkgs/os-specific/gnu/default.nix+2−2
@@ -2,7 +2,7 @@
22
33args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
44, texinfo, glibcCross, hurdPartedCross, libuuid, samba
5−, gccCrossStageStatic, gccCrossStageFinal
5+, gccCrossStageStatic, gcc
66, forceSystem, newScope, platform, config
77, targetPlatform, buildPlatform
88, overrides ? {}
@@ -28,7 +28,7 @@ let
2828 automake = automake111x;
2929 headersOnly = false;
3030 cross = assert targetPlatform != buildPlatform; targetPlatform;
31− gccCross = gccCrossStageFinal;
31+ gccCross = gcc;
3232 };
3333
3434 hurdCrossIntermediate = forcedNativePackages.callPackage ./hurd {
pkgs/stdenv/cross/default.nix+1−1
@@ -35,7 +35,7 @@ in bootStages ++ [
3535 targetPlatform = crossSystem;
3636 cc = if crossSystem.useiOSCross or false
3737 then buildPackages.darwin.ios-cross
38− else buildPackages.gccCrossStageFinal;
38+ else buildPackages.gcc;
3939 };
4040 })
4141
pkgs/top-level/all-packages.nix+3−6
@@ -5426,6 +5426,8 @@ with pkgs;
54265426 cc = buildPackages.gccCrossStageStatic;
54275427 };
54285428
5429+ # The GCC used to build libc for the target platform. Normal gccs will be
5430+ # built with, and use, that cross-compiled libc.
54295431 gccCrossStageStatic = assert targetPlatform != buildPlatform; let
54305432 libcCross1 =
54315433 if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers
@@ -5456,12 +5458,6 @@ with pkgs;
54565458 libc = windows.mingw_headers2;
54575459 };
54585460
5459− gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith {
5460− name = "gcc-cross-wrapper";
5461− cc = gcc.cc;
5462− libc = libcCross;
5463− };
5464−
54655461 gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 {
54665462 inherit noSysDirs;
54675463 texinfo = texinfo4;
@@ -6226,6 +6222,7 @@ with pkgs;
62266222 ccWrapperFun = callPackage ../build-support/cc-wrapper;
62276223
62286224 wrapCC = cc: wrapCCWith {
6225+ name = lib.optionalString (targetPlatform != hostPlatform) "gcc-cross-wrapper";
62296226 inherit cc;
62306227 libc = if targetPlatform != hostPlatform then libcCross else stdenv.cc.libc;
62316228 };
pkgs/top-level/release-cross.nix+1−1
@@ -19,7 +19,7 @@ let
1919 };
2020
2121 gnuCommon = lib.recursiveUpdate common {
22− buildPackages.gccCrossStageFinal = nativePlatforms;
22+ buildPackages.gcc = nativePlatforms;
2323 coreutils = nativePlatforms;
2424 };
2525