about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/bootstrap/sanity.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
index c0d303c0ea9..ae7f2e018f9 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
@@ -75,6 +75,12 @@ pub fn check(build: &mut Build) {
 
     need_cmd("python".as_ref());
 
+    // If a manual nodejs was added to the config,
+    // of if a nodejs install is detected through bootstrap.py, use it.
+    if build.config.nodejs.is_some() {
+        need_cmd("nodejs".as_ref())
+    }
+
     // We're gonna build some custom C code here and there, host triples
     // also build some C++ shims for LLVM so we need a C++ compiler.
     for target in build.config.target.iter() {