Skip to content

Commit 892a77d

Browse files
committed
Don't give deprecation warnings when building the compiler.
1 parent df69227 commit 892a77d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/ciTest.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ function runTests() {
6262
// var output =
6363
// cp.execSync('which ocaml', { encoding: 'ascii' })
6464
// console.log('OCaml:', output)
65+
6566
var binDir = path.join(__dirname, "..", "jscomp", "bin");
6667
if (ounitTest) {
6768
cp.execSync(
68-
`ocamlc.opt -warn-error -a -I . -c js_compiler.mli js_compiler.ml`,
69+
`ocamlc.opt -w "-d" -warn-error -a -I . -c js_compiler.mli js_compiler.ml`,
6970
{
7071
cwd: path.join(__dirname, "..", "lib", "4.06.1", "unstable"),
7172
stdio: [0, 1, 2],
@@ -84,7 +85,7 @@ function runTests() {
8485
path.join(binDir, "all_ounit_tests.ml")
8586
);
8687
cp.execSync(
87-
`ocamlopt.opt -g -w -40-30 ../stubs/ext_basic_hash_stubs.c unix.cmxa str.cmxa all_ounit_tests.ml -o test.exe`,
88+
`ocamlopt.opt -g -w -40-30 -w "-d" ../stubs/ext_basic_hash_stubs.c unix.cmxa str.cmxa all_ounit_tests.ml -o test.exe`,
8889
{
8990
cwd: binDir,
9091
stdio: [0, 1, 2],

0 commit comments

Comments
 (0)