tweaking the nodejs cmd sanity check

This commit is contained in:
Jake Goldsborough 2016-09-08 17:51:06 -07:00
parent 7e46f2ceaa
commit 89bc13c37d

View File

@ -77,8 +77,8 @@ pub fn check(build: &mut Build) {
// If a manual nodejs was added to the config,
// of if a nodejs install is detected through config, use it.
if build.config.nodejs.is_some() {
need_cmd("nodejs".as_ref())
if let Some(ref s) = build.config.nodejs {
need_cmd(s.as_ref());
}
// We're gonna build some custom C code here and there, host triples