Merge pull request #172570 from Artturin/epbbydefault

main
Artturi 2 years ago committed by GitHub
commit 22f6a17b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkgs/stdenv/generic/make-derivation.nix
  2. 4
      pkgs/top-level/config.nix

@ -135,6 +135,8 @@ makeOverlayable (overrideAttrs:
, # TODO(@Ericson2314): Make always true and remove , # TODO(@Ericson2314): Make always true and remove
strictDeps ? if config.strictDepsByDefault then true else stdenv.hostPlatform != stdenv.buildPlatform strictDeps ? if config.strictDepsByDefault then true else stdenv.hostPlatform != stdenv.buildPlatform
, enableParallelBuilding ? config.enableParallelBuildingByDefault
, meta ? {} , meta ? {}
, passthru ? {} , passthru ? {}
, pos ? # position used in error messages and for meta.position , pos ? # position used in error messages and for meta.position
@ -383,7 +385,7 @@ else let
llvm-config = 'llvm-config-native' llvm-config = 'llvm-config-native'
''; '';
in [ "--cross-file=${crossFile}" ] ++ mesonFlags; in [ "--cross-file=${crossFile}" ] ++ mesonFlags;
} // lib.optionalAttrs (attrs.enableParallelBuilding or false) { } // lib.optionalAttrs (enableParallelBuilding) {
enableParallelChecking = attrs.enableParallelChecking or true; enableParallelChecking = attrs.enableParallelChecking or true;
} // lib.optionalAttrs (hardeningDisable != [] || hardeningEnable != [] || stdenv.hostPlatform.isMusl) { } // lib.optionalAttrs (hardeningDisable != [] || hardeningEnable != [] || stdenv.hostPlatform.isMusl) {
NIX_HARDENING_ENABLE = enabledHardeningOptions; NIX_HARDENING_ENABLE = enabledHardeningOptions;

@ -36,6 +36,10 @@ let
feature = "set <literal>strictDeps</literal> to true by default"; feature = "set <literal>strictDeps</literal> to true by default";
}; };
enableParallelBuildingByDefault = mkMassRebuild {
feature = "set <literal>enableParallelBuilding</literal> to true by default";
};
contentAddressedByDefault = mkMassRebuild { contentAddressedByDefault = mkMassRebuild {
feature = "set <literal>__contentAddressed</literal> to true by default"; feature = "set <literal>__contentAddressed</literal> to true by default";
}; };

Loading…
Cancel
Save