mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Benchmark builds kept Temporal enabled on macOS after the Nix default changed, while shared-library CI disabled it. This forced benchmarks to rebuild V8 instead of reusing the cached derivation. Define the common build defaults in a Nix shell used by CI, benchmark builds, and the V8 cache job to keep their configurations aligned. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: https://github.com/nodejs/node/pull/66351 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
30 lines
732 B
Nix
30 lines
732 B
Nix
args@{
|
|
pkgs ? import ./pkgs.nix { },
|
|
...
|
|
}:
|
|
import ../../shell.nix (
|
|
{
|
|
inherit pkgs;
|
|
useSeparateDerivationForV8 = true;
|
|
loadJSBuiltinsDynamically = false;
|
|
devTools = [ ];
|
|
benchmarkTools = [ ];
|
|
}
|
|
// pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin (
|
|
# Disable optional features on Darwin for coverage and faster CI.
|
|
builtins.mapAttrs (n: v: false) (
|
|
pkgs.lib.filterAttrs (n: v: builtins.match "with[A-Z].+" n != null) (
|
|
builtins.functionArgs (import ../../shell.nix)
|
|
)
|
|
)
|
|
// {
|
|
withSSL = true; # no-SSL coverage is ensured by Jenkins
|
|
extraConfigFlags = [
|
|
"--without-inspector"
|
|
"--without-node-options"
|
|
];
|
|
}
|
|
)
|
|
// args
|
|
)
|