File tree 3 files changed +4
-12
lines changed
3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -634,6 +634,7 @@ valopt datadir "${CFG_PREFIX}/share" "install data"
634
634
valopt infodir " ${CFG_PREFIX} /share/info" " install additional info"
635
635
valopt llvm-root " " " set LLVM root"
636
636
valopt python " " " set path to python"
637
+ valopt nodejs " " " set path to nodejs"
637
638
valopt jemalloc-root " " " set directory where libjemalloc_pic.a is located"
638
639
valopt build " ${DEFAULT_BUILD} " " GNUs ./configure syntax LLVM build triple"
639
640
valopt android-cross-path " " " Android NDK standalone path (deprecated)"
@@ -749,6 +750,9 @@ if [ $(echo $python_version | grep -c '^Python 2\.7') -ne 1 ]; then
749
750
err " Found $python_version , but Python 2.7 is required"
750
751
fi
751
752
753
+ # Checking for node, but not required
754
+ probe CFG_NODEJS nodejs node
755
+
752
756
# If we have no git directory then we are probably a tarball distribution
753
757
# and shouldn't attempt to load submodules
754
758
if [ ! -e ${CFG_SRC_DIR} .git ]
Original file line number Diff line number Diff line change @@ -236,15 +236,6 @@ def rustc(self):
236
236
return config + '/bin/rustc' + self .exe_suffix ()
237
237
return os .path .join (self .bin_root (), "bin/rustc" + self .exe_suffix ())
238
238
239
- def nodejs (self ):
240
- config = self .get_toml ('nodejs' )
241
- if config :
242
- return config
243
- if os .path .exists (os .path .join (self .bin_root (), "bin/nodejs" )):
244
- return os .path .join (self .bin_root (), "bin/nodejs" + self .exe_suffix ())
245
- elif os .path .exists (os .path .join (self .bin_root (), "bin/node" )):
246
- return os .path .join (self .bin_root (), "bin/node" + self .exe_suffix ())
247
-
248
239
def get_string (self , line ):
249
240
start = line .find ('"' )
250
241
end = start + 1 + line [start + 1 :].find ('"' )
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ pub struct Config {
67
67
pub target : Vec < String > ,
68
68
pub rustc : Option < PathBuf > ,
69
69
pub cargo : Option < PathBuf > ,
70
- pub nodejs : Option < PathBuf > ,
71
70
pub local_rebuild : bool ,
72
71
73
72
// libstd features
@@ -112,7 +111,6 @@ struct Build {
112
111
host : Vec < String > ,
113
112
target : Vec < String > ,
114
113
cargo : Option < String > ,
115
- nodejs : Option < String > ,
116
114
rustc : Option < String > ,
117
115
compiler_docs : Option < bool > ,
118
116
docs : Option < bool > ,
@@ -217,7 +215,6 @@ impl Config {
217
215
}
218
216
config. rustc = build. rustc . map ( PathBuf :: from) ;
219
217
config. cargo = build. cargo . map ( PathBuf :: from) ;
220
- config. nodejs = build. nodejs . map ( PathBuf :: from) ;
221
218
set ( & mut config. compiler_docs , build. compiler_docs ) ;
222
219
set ( & mut config. docs , build. docs ) ;
223
220
You can’t perform that action at this time.
0 commit comments