Skip to content

Commit 79644ac

Browse files
author
Jake Goldsborough
committed
adding a check to sanity to look for the nodejs command
1 parent b664100 commit 79644ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/sanity.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ pub fn check(build: &mut Build) {
7575

7676
need_cmd("python".as_ref());
7777

78+
// If a manual nodejs was added to the config,
79+
// of if a nodejs install is detected through bootstrap.py, use it.
80+
if build.config.nodejs.is_some() {
81+
need_cmd("nodejs".as_ref())
82+
}
83+
7884
// We're gonna build some custom C code here and there, host triples
7985
// also build some C++ shims for LLVM so we need a C++ compiler.
8086
for target in build.config.target.iter() {

0 commit comments

Comments
 (0)