Skip to content

Commit f861952

Browse files
committed
warn error for all libs
1 parent 63c9917 commit f861952

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/ninja.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,10 +1103,11 @@ async function stdlibNinja(devmode = true) {
11031103
*/
11041104
var bsc_builtin_overrides = [[bsc_flags, `$${bsc_flags} -nopervasives`]];
11051105
// It is interesting `-w -a` would generate not great code sometimes
1106-
var warnings = devmode ? "-w -40-49-103" : "-w -40-49-103-3";
1106+
// deprecations diabled due to string_of_float
1107+
var warnings = "-w -9-3-106 -warn-error A";
11071108
var templateStdlibRules = `
11081109
${BSC_COMPILER}
1109-
${bsc_flags} = -absname -no-alias-deps -bs-no-version-header -bs-diagnose -bs-no-check-div-by-zero -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:lib/js -bs-package-output es6:lib/es6 -nostdlib ${warnings} -bin-annot -bs-no-warn-unimplemented-external -I runtime -I others
1110+
${bsc_flags} = -absname -no-alias-deps -bs-no-version-header -bs-diagnose -bs-no-check-div-by-zero -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:lib/js -bs-package-output es6:lib/es6 -nostdlib ${warnings} -I runtime -I others
11101111
${ruleCC(ninjaCwd)}
11111112
${ninjaQuickBuidList([
11121113
[
@@ -1241,7 +1242,7 @@ async function testNinja() {
12411242
var ninjaCwd = `test`;
12421243
var templateTestRules = `
12431244
${BSC_COMPILER}
1244-
bsc_flags = -absname -bs-no-version-header -bs-diagnose -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:jscomp/test -w -40-52 -bin-annot -I runtime -I $stdlib -I others
1245+
bsc_flags = -absname -bs-no-version-header -bs-diagnose -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others
12451246
${ruleCC(ninjaCwd)}
12461247
12471248
@@ -1569,7 +1570,7 @@ ${cppoList("syntax", [
15691570
])}
15701571
build ../lib/refmt.exe: link ${refmtMainPath}/refmt_main3.mli ${refmtMainPath}/refmt_main3.ml
15711572
libs = ocamlcommon.cmxa
1572-
flags = -I ${refmtMainPath} -I +compiler-libs -w -40-30 -no-alias-deps
1573+
flags = -I ${refmtMainPath} -I +compiler-libs -w -40-30-3 -no-alias-deps
15731574
generator = true
15741575
`;
15751576
var cppoNinjaFile = getPreprocessorFileName();

0 commit comments

Comments
 (0)