File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ pub struct Config {
79
79
pub musl_root : Option < PathBuf > ,
80
80
pub prefix : Option < String > ,
81
81
pub codegen_tests : bool ,
82
+ pub nodejs : Option < PathBuf > ,
82
83
}
83
84
84
85
/// Per-target configuration stored in the global configuration structure.
@@ -391,6 +392,9 @@ impl Config {
391
392
self . rustc = Some ( PathBuf :: from ( value) . join ( "bin/rustc" ) ) ;
392
393
self . cargo = Some ( PathBuf :: from ( value) . join ( "bin/cargo" ) ) ;
393
394
}
395
+ "CFG_NODEJS" if value. len ( ) > 0 => {
396
+ self . nodejs = Some ( PathBuf :: from ( value) ) ;
397
+ }
394
398
_ => { }
395
399
}
396
400
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ pub fn check(build: &mut Build) {
76
76
need_cmd ( "python" . as_ref ( ) ) ;
77
77
78
78
// If a manual nodejs was added to the config,
79
- // of if a nodejs install is detected through bootstrap.py , use it.
79
+ // of if a nodejs install is detected through config , use it.
80
80
if build. config . nodejs . is_some ( ) {
81
81
need_cmd ( "nodejs" . as_ref ( ) )
82
82
}
You can’t perform that action at this time.
0 commit comments