git.iko.soy/typeable/nixpkgs
on master help sign in
gcc: Change default of `crossStageStatic` param to false

This gets us one step closer to removing `gccCrossStageFinal`. Care is taken to avoid a mass rebuild; will clean up with one later.

commit54282b9610e80b1ed93136319e24cb79c5bbcc33 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateWed 20 Sep 2017, 15:02 (9 years ago) parent3af3d6e
8 files changed+29−17
pkgs/development/compilers/gcc/4.5/default.nix+4−2 pkgs/development/compilers/gcc/4.8/default.nix+4−2 pkgs/development/compilers/gcc/4.9/default.nix+4−2 pkgs/development/compilers/gcc/5/default.nix+4−2 pkgs/development/compilers/gcc/6/default.nix+4−2 pkgs/development/compilers/gcc/7/default.nix+4−2 pkgs/development/compilers/gcc/snapshot/default.nix+4−2 pkgs/top-level/all-packages.nix+1−3
pkgs/development/compilers/gcc/4.5/default.nix+4−2
@@ -20,7 +20,7 @@
2020, enableMultilib ? false
2121, name ? "gcc"
2222, libcCross ? null
23−, crossStageStatic ? true
23+, crossStageStatic ? false
2424, gnat ? null
2525, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
2626, stripped ? true
@@ -213,7 +213,9 @@ stdenv.mkDerivation ({
213213 ''
214214 else null;
215215
216− inherit noSysDirs profiledCompiler staticCompiler langJava crossStageStatic
216+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
217+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
218+ inherit noSysDirs profiledCompiler staticCompiler langJava
217219 libcCross crossMingw;
218220
219221 nativeBuildInputs = [ texinfo which gettext ]
pkgs/development/compilers/gcc/4.8/default.nix+4−2
@@ -26,7 +26,7 @@
2626, enablePlugin ? true # whether to support user-supplied plug-ins
2727, name ? "gcc"
2828, libcCross ? null
29−, crossStageStatic ? true
29+, crossStageStatic ? false
3030, gnat ? null
3131, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
3232, stripped ? true
@@ -284,7 +284,9 @@ stdenv.mkDerivation ({
284284 ''
285285 else null;
286286
287− inherit noSysDirs staticCompiler langJava crossStageStatic
287+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
288+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
289+ inherit noSysDirs staticCompiler langJava
288290 libcCross crossMingw;
289291
290292 nativeBuildInputs = [ texinfo which gettext ]
pkgs/development/compilers/gcc/4.9/default.nix+4−2
@@ -26,7 +26,7 @@
2626, enablePlugin ? true # whether to support user-supplied plug-ins
2727, name ? "gcc"
2828, libcCross ? null
29−, crossStageStatic ? true
29+, crossStageStatic ? false
3030, gnat ? null
3131, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
3232, stripped ? true
@@ -280,7 +280,9 @@ stdenv.mkDerivation ({
280280 ''
281281 else null;
282282
283− inherit noSysDirs staticCompiler langJava crossStageStatic
283+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
284+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
285+ inherit noSysDirs staticCompiler langJava
284286 libcCross crossMingw;
285287
286288 nativeBuildInputs = [ texinfo which gettext ]
pkgs/development/compilers/gcc/5/default.nix+4−2
@@ -26,7 +26,7 @@
2626, enablePlugin ? true # whether to support user-supplied plug-ins
2727, name ? "gcc"
2828, libcCross ? null
29−, crossStageStatic ? true
29+, crossStageStatic ? false
3030, gnat ? null
3131, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
3232, stripped ? true
@@ -299,7 +299,9 @@ stdenv.mkDerivation ({
299299 ''
300300 else null;
301301
302− inherit noSysDirs staticCompiler langJava crossStageStatic
302+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
303+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
304+ inherit noSysDirs staticCompiler langJava
303305 libcCross crossMingw;
304306
305307 nativeBuildInputs = [ texinfo which gettext ]
pkgs/development/compilers/gcc/6/default.nix+4−2
@@ -26,7 +26,7 @@
2626, enablePlugin ? true # whether to support user-supplied plug-ins
2727, name ? "gcc"
2828, libcCross ? null
29−, crossStageStatic ? true
29+, crossStageStatic ? false
3030, gnat ? null
3131, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
3232, stripped ? true
@@ -292,7 +292,9 @@ stdenv.mkDerivation ({
292292 ''
293293 else null;
294294
295− inherit noSysDirs staticCompiler langJava crossStageStatic
295+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
296+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
297+ inherit noSysDirs staticCompiler langJava
296298 libcCross crossMingw;
297299
298300 nativeBuildInputs = [ texinfo which gettext ]
pkgs/development/compilers/gcc/7/default.nix+4−2
@@ -26,7 +26,7 @@
2626, enablePlugin ? true # whether to support user-supplied plug-ins
2727, name ? "gcc"
2828, libcCross ? null
29−, crossStageStatic ? true
29+, crossStageStatic ? false
3030, gnat ? null
3131, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
3232, stripped ? true
@@ -294,7 +294,9 @@ stdenv.mkDerivation ({
294294 ''
295295 else null;
296296
297− inherit noSysDirs staticCompiler langJava crossStageStatic
297+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
298+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
299+ inherit noSysDirs staticCompiler langJava
298300 libcCross crossMingw;
299301
300302 nativeBuildInputs = [ texinfo which gettext ]
pkgs/development/compilers/gcc/snapshot/default.nix+4−2
@@ -26,7 +26,7 @@
2626, enablePlugin ? true # whether to support user-supplied plug-ins
2727, name ? "gcc"
2828, libcCross ? null
29−, crossStageStatic ? true
29+, crossStageStatic ? false
3030, gnat ? null
3131, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
3232, stripped ? true
@@ -281,7 +281,9 @@ stdenv.mkDerivation ({
281281 ''
282282 else null;
283283
284− inherit noSysDirs staticCompiler langJava crossStageStatic
284+ # TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
285+ crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;
286+ inherit noSysDirs staticCompiler langJava
285287 libcCross crossMingw;
286288
287289 nativeBuildInputs = [ texinfo which gettext ]
pkgs/top-level/all-packages.nix+1−3
@@ -5451,9 +5451,7 @@ with pkgs;
54515451
54525452 gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith {
54535453 name = "gcc-cross-wrapper";
5454− cc = gcc.cc.override {
5455− crossStageStatic = false;
5456− };
5454+ cc = gcc.cc;
54575455 libc = libcCross;
54585456 };
54595457