File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,16 @@ function build(config) {
62
62
) ;
63
63
64
64
if ( config ) {
65
+ var { make } = require ( "./config.js" ) ;
65
66
cp . execSync (
66
67
"./configure -flambda -prefix " +
67
68
prefix +
68
- " -no-ocamlbuild -no-curses -no-graph -no-pthread -no-debugger && make clean" ,
69
+ ` -no-ocamlbuild -no-curses -no-graph -no-pthread -no-debugger && ${ make } clean` ,
69
70
{ cwd : ocamlSrcDir , stdio : [ 0 , 1 , 2 ] }
70
71
) ;
71
72
}
72
73
73
- cp . execSync ( " make -j9 world.opt && make install " , {
74
+ cp . execSync ( ` ${ make } -j9 world.opt && ${ make } install ` , {
74
75
cwd : ocamlSrcDir ,
75
76
stdio : [ 0 , 1 , 2 ]
76
77
} ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var os = require('os')
3
3
var os_type = os . type ( )
4
4
5
5
var is_windows = ! ( os_type . indexOf ( 'Windows' ) < 0 )
6
- // var is_bsd = !(os_type.indexOf('BSD') < 0)
6
+ var is_bsd = ! ( os_type . indexOf ( 'BSD' ) < 0 )
7
7
8
8
exports . is_windows = is_windows
9
9
var sys_extension ;
@@ -17,7 +17,7 @@ switch (os.type()) {
17
17
}
18
18
19
19
exports . sys_extension = sys_extension
20
- // var make = is_bsd ? 'gmake' : 'make'
21
- // exports.make = make
20
+ var make = is_bsd ? 'gmake' : 'make'
21
+ exports . make = make
22
22
23
23
You can’t perform that action at this time.
0 commit comments