@@ -56,15 +56,12 @@ var bin_path =
56
56
path . join ( __dirname , '..' , process . platform === 'darwin' && process . arch === 'arm64' ? process . platform + process . arch : process . platform )
57
57
58
58
function buildCompiler ( ) {
59
- // for 4.02.3 it relies on OCAMLLIB to find stdlib path
60
- // for 4.06.1 OCAMLLIB is another PATH
61
- // delete process.env.OCAMLLIB
62
59
var prebuilt = "prebuilt.ninja" ;
63
60
var content = require ( "./ninjaFactory.js" ) . libNinja ( {
64
61
ocamlopt : use_env_compiler
65
62
? `ocamlopt.opt`
66
63
: `../native/${ ocamlVersion } /bin/ocamlopt.opt` ,
67
- INCL : ocamlVersion ,
64
+ INCL : "4.06.1" ,
68
65
isWin : is_windows ,
69
66
} ) ;
70
67
@@ -89,15 +86,9 @@ if (!is_windows) {
89
86
90
87
}
91
88
92
- function createOCamlTar ( ) {
89
+ function createNinjaTar ( ) {
93
90
if ( isHostPlatform ( ) ) {
94
91
require ( "./installUtils.js" ) . install ( ) ;
95
- console . log ( `status in ocaml submodule:` ) ;
96
- cp . execSync ( `git -C ocaml status -uno` , { cwd : root , stdio : [ 0 , 1 , 2 ] } ) ;
97
- cp . execSync (
98
- `git -C ocaml archive --format=tar.gz HEAD -o ../vendor/ocaml.tar.gz` ,
99
- { cwd : root , stdio : [ 0 , 1 , 2 ] }
100
- ) ;
101
92
console . log ( `status in ninja submodule:` ) ;
102
93
cp . execSync ( `git -C ninja status -uno` , { cwd : root , stdio : [ 0 , 1 , 2 ] } ) ;
103
94
cp . execSync (
@@ -107,5 +98,5 @@ function createOCamlTar() {
107
98
}
108
99
}
109
100
110
- createOCamlTar ( ) ;
101
+ createNinjaTar ( ) ;
111
102
buildCompiler ( ) ;
0 commit comments