From 66f9b3533189c8cb59a5b18f1baefdf407ade312 Mon Sep 17 00:00:00 2001 From: Renegade334 Date: Tue, 28 Jul 2026 13:45:30 +0100 Subject: [PATCH] fix(v8): set RUSTC_BOOTSTRAP=1 when using Cargo nightly features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to enable `-Z bindeps` to read the Chromium crates tree, but this is not available on Cargo release builds by default. Setting RUSTC_BOOTSTRAP overrides this behaviour. This is technically an unstable feature, but Chromium's tooling also uses it for the same purpose, and it's extremely unlikely to be withdrawn. Co-authored-by: Michaƫl Zasso --- lib/update-v8/updateCrates.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/update-v8/updateCrates.js b/lib/update-v8/updateCrates.js index ad5a23fd..de3f6d73 100644 --- a/lib/update-v8/updateCrates.js +++ b/lib/update-v8/updateCrates.js @@ -37,7 +37,10 @@ function enumerateTemporalDependencies() { { ignoreFailure: false, captureStdout: true, - spawnArgs: { cwd: path.join(ctx.nodeDir, chromiumCratesDir) } + spawnArgs: { + cwd: path.join(ctx.nodeDir, chromiumCratesDir), + env: { ...process.env, RUSTC_BOOTSTRAP: '1' } + } } ); const crates = new Set();