File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1103,10 +1103,11 @@ async function stdlibNinja(devmode = true) {
1103
1103
*/
1104
1104
var bsc_builtin_overrides = [ [ bsc_flags , `$${ bsc_flags } -nopervasives` ] ] ;
1105
1105
// 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" ;
1107
1108
var templateStdlibRules = `
1108
1109
${ 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
1110
1111
${ ruleCC ( ninjaCwd ) }
1111
1112
${ ninjaQuickBuidList ( [
1112
1113
[
@@ -1241,7 +1242,7 @@ async function testNinja() {
1241
1242
var ninjaCwd = `test` ;
1242
1243
var templateTestRules = `
1243
1244
${ 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
1245
1246
${ ruleCC ( ninjaCwd ) }
1246
1247
1247
1248
@@ -1569,7 +1570,7 @@ ${cppoList("syntax", [
1569
1570
] ) }
1570
1571
build ../lib/refmt.exe: link ${ refmtMainPath } /refmt_main3.mli ${ refmtMainPath } /refmt_main3.ml
1571
1572
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
1573
1574
generator = true
1574
1575
` ;
1575
1576
var cppoNinjaFile = getPreprocessorFileName ( ) ;
You can’t perform that action at this time.
0 commit comments