about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-07-22 12:21:14 -0500
committerbinarycat <binarycat@envs.net>2025-07-22 12:46:19 -0500
commit2d1fccd7a1fb713d0d2cea6cb33ad245a6b1f383 (patch)
treefe3e773c813bbe71a05a7633cbbe75c2ae57cb0c /src/bootstrap
parent35487a2e7c80012129c38f55c970109a1538c91f (diff)
downloadrust-2d1fccd7a1fb713d0d2cea6cb33ad245a6b1f383.tar.gz
rust-2d1fccd7a1fb713d0d2cea6cb33ad245a6b1f383.zip
pass build.npm from bootstrap to tidy and use it for npm install
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index 8344b0e03b4..1022faa0921 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -1113,6 +1113,12 @@ impl Step for Tidy {
             8 * std::thread::available_parallelism().map_or(1, std::num::NonZeroUsize::get) as u32
         });
         cmd.arg(jobs.to_string());
+        // pass the path to the npm command used for installing js deps.
+        if let Some(npm) = &builder.config.npm {
+            cmd.arg(npm);
+        } else {
+            cmd.arg("npm");
+        }
         if builder.is_verbose() {
             cmd.arg("--verbose");
         }