File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
2
bsc = ../lib/bsc.exe
3
- 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 -w -40-49-103 -bin-annot -bs-no-warn-unimplemented-external -I runtime -I others
3
+ 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 -w -40-49-103-3 -bin-annot -bs-no-warn-unimplemented-external -I runtime -I others
4
4
rule cc
5
5
command = $bsc -bs-cmi -bs-cmj $bsc_flags -bs-no-implicit-include -I stdlib-402 -c $in
6
6
description = $in -> $out
Original file line number Diff line number Diff line change @@ -785,9 +785,11 @@ async function stdlibNinja(devmode=true){
785
785
* @type [string,string][]
786
786
*/
787
787
var bsc_builtin_overrides = [ [ bsc_flags , `$${ bsc_flags } -nopervasives` ] ]
788
+ // It is interesting `-w -a` would generate not great code sometimes
789
+ var warnings = devmode ? '-w -40-49-103' : '-w -40-49-103-3'
788
790
var templateStdlibRules = `
789
791
${ BSC_COMPILER }
790
- ${ 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 -w -40-49-103 -bin-annot -bs-no-warn-unimplemented-external -I runtime -I others
792
+ ${ 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
791
793
rule cc
792
794
command = $bsc -bs-cmi -bs-cmj $${ bsc_flags } -bs-no-implicit-include -I ${ ninjaCwd } -c $in
793
795
description = $in -> $out
You can’t perform that action at this time.
0 commit comments