Skip to content

Commit 89bc13c

Browse files
author
Jake Goldsborough
committed
tweaking the nodejs cmd sanity check
1 parent 7e46f2c commit 89bc13c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/sanity.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ pub fn check(build: &mut Build) {
7777

7878
// If a manual nodejs was added to the config,
7979
// of if a nodejs install is detected through config, use it.
80-
if build.config.nodejs.is_some() {
81-
need_cmd("nodejs".as_ref())
80+
if let Some(ref s) = build.config.nodejs {
81+
need_cmd(s.as_ref());
8282
}
8383

8484
// We're gonna build some custom C code here and there, host triples

0 commit comments

Comments
 (0)