File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,16 @@ function build(config) {
6262 ) ;
6363
6464 if ( config ) {
65+ var { make } = require ( "./config.js" ) ;
6566 cp . execSync (
6667 "./configure -flambda -prefix " +
6768 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` ,
6970 { cwd : ocamlSrcDir , stdio : [ 0 , 1 , 2 ] }
7071 ) ;
7172 }
7273
73- cp . execSync ( " make -j9 world.opt && make install " , {
74+ cp . execSync ( ` ${ make } -j9 world.opt && ${ make } install ` , {
7475 cwd : ocamlSrcDir ,
7576 stdio : [ 0 , 1 , 2 ]
7677 } ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var os = require('os')
33var os_type = os . type ( )
44
55var 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 )
77
88exports . is_windows = is_windows
99var sys_extension ;
@@ -17,7 +17,7 @@ switch (os.type()) {
1717}
1818
1919exports . 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
2222
2323
You can’t perform that action at this time.
0 commit comments