]> git.lizzy.rs Git - rust.git/commitdiff
tweaking the nodejs cmd sanity check
authorJake Goldsborough <rjgoldsborough@gmail.com>
Fri, 9 Sep 2016 00:51:06 +0000 (17:51 -0700)
committerJake Goldsborough <rjgoldsborough@gmail.com>
Fri, 9 Sep 2016 00:51:06 +0000 (17:51 -0700)
src/bootstrap/sanity.rs

index c345893954f46ec61dbed5a7bcc6fd4b17d02c53..e5e66f1035d17ceb667d815564913d8d0814c70d 100644 (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