about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJake Goldsborough <rjgoldsborough@gmail.com>2016-09-08 17:51:06 -0700
committerJake Goldsborough <rjgoldsborough@gmail.com>2016-09-08 17:51:06 -0700
commit89bc13c37d0fc58b583f07a5902f62e598c69b0e (patch)
tree2ebf45baa24e0ce9668cc3d4cf7a728da95e7bcf
parent7e46f2ceaa84ae7ba7143fcbe8bb3d0da2449fb4 (diff)
tweaking the nodejs cmd sanity check
-rw-r--r--src/bootstrap/sanity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
index c345893954f..e5e66f1035d 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
@@ -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