1
Fork 0

adding a check to sanity to look for the nodejs command

This commit is contained in:
Jake Goldsborough 2016-09-06 07:41:20 -07:00
parent b66410043a
commit 79644ac3c4

View file

@ -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() {