File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,15 @@ function prepare(isDev, targetCompilerFile) {
64
64
? [ "development" , "-g " , "--pretty " ]
65
65
: [ "production" , "" , "" ] ;
66
66
console . log ( `building byte code version of the compiler [${ env } ]` ) ;
67
+
68
+ const mliFile = path . join ( sourceDir , targetCompilerFile + ".mli" )
69
+ const mlFile = path . join ( sourceDir , targetCompilerFile + ".ml" )
70
+
71
+ // There may be a situation where the .mli file doesn't exist (mostly when
72
+ // the snapshot hasn't been checked into `lib/4.06.1/unstable`
73
+ e ( `touch ${ mliFile } ` )
67
74
e (
68
- `${ OCAMLC } ${ ocamlFlag } -w -30-40 -no-check-prims -I ${ sourceDir } ${ sourceDir } / ${ targetCompilerFile } .mli ${ sourceDir } / ${ targetCompilerFile } .ml -o jsc.byte `
75
+ `${ OCAMLC } ${ ocamlFlag } -w -30-40 -no-check-prims -I ${ sourceDir } ${ mliFile } ${ mlFile } -o jsc.byte `
69
76
) ;
70
77
console . log ( "building js version" ) ;
71
78
e ( `${ JSOO } compile jsc.byte ${ jsooFlag } -o exports.js` ) ;
You can’t perform that action at this time.
0 commit comments