config.configurePlatformsByDefault: init option
Useful to enable tree-wide occasionally to have incremental progress towards https://github.com/NixOS/nixpkgs/pull/87909 resolution.
This commit is contained in:
parent
b76e4a37da
commit
db09d70d33
2 changed files with 6 additions and 2 deletions
|
@ -111,9 +111,9 @@ let
|
|||
, # Target is not included by default because most programs don't care.
|
||||
# Including it then would cause needless mass rebuilds.
|
||||
#
|
||||
# TODO(@Ericson2314): Make [ "build" "host" ] always the default.
|
||||
# TODO(@Ericson2314): Make [ "build" "host" ] always the default / resolve #87909
|
||||
configurePlatforms ? lib.optionals
|
||||
(stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
(stdenv.hostPlatform != stdenv.buildPlatform || config.configurePlatformsByDefault)
|
||||
[ "build" "host" ]
|
||||
|
||||
# TODO(@Ericson2314): Make unconditional / resolve #33599
|
||||
|
|
|
@ -50,6 +50,10 @@ let
|
|||
feature = "set <literal>enableParallelBuilding</literal> to true by default";
|
||||
};
|
||||
|
||||
configurePlatformsByDefault = mkMassRebuild {
|
||||
feature = "set <literal>configurePlatforms</literal> to <literal>[\"build\" \"host\"]</literal> by default";
|
||||
};
|
||||
|
||||
contentAddressedByDefault = mkMassRebuild {
|
||||
feature = "set <literal>__contentAddressed</literal> to true by default";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue