File tree Expand file tree Collapse file tree 5 files changed +94
-62
lines changed Expand file tree Collapse file tree 5 files changed +94
-62
lines changed Original file line number Diff line number Diff line change 12
12
"suffix" : " .bs.js" ,
13
13
"bs-dependencies" : [
14
14
" bucklescript-tea"
15
- ],
16
- "warnings" : {
17
- "error" : " +101"
18
- }
15
+ ]
19
16
}
Original file line number Diff line number Diff line change 1
1
releaseMode = -D BS_RELEASE_BUILD=true
2
2
rule bspack
3
- command = ./bin/bspack.exe $flags -bs-main $main -o $out
3
+ command = ./bin/bspack.exe $flags -bs-main $main -o $out $post_process
4
4
depfile = $out .d
5
5
generator = true
6
6
7
-
7
+ LTO = ../scripts/buckle_lto.js
8
8
OCAML_SRC_UTILS = $native_ocaml_path /utils
9
9
OCAML_SRC_PARSING = $native_ocaml_path /parsing
10
10
OCAML_SRC_TYPING = $native_ocaml_path /typing
@@ -19,12 +19,12 @@ build snapshot: phony $SNAP/whole_compiler.ml $SNAP/bsppx.ml $SNAP/bsdep.ml $SN
19
19
build $SNAP/whole_compiler.ml : bspack | ./bin/bspack.exe
20
20
flags = ${releaseMode} -bs-MD -module-alias Config=Config_whole_compiler -bs-exclude-I config -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I $OCAML_SRC_TYPING -I $OCAML_SRC_BYTECOMP -I $OCAML_SRC_DRIVER ${includes}
21
21
main = Js_main
22
-
22
+ post_process = && node $LTO $SNAP /whole_compiler.ml
23
23
24
24
build $SNAP/bsppx.ml : bspack | ./bin/bspack.exe
25
25
flags = ${releaseMode} -bs-MD -module-alias Config=Config_whole_compiler -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I stubs -I common -I ext -I syntax -I core -I js_parser -I main
26
26
main = Bsppx_main
27
-
27
+ post_process = && node $LTO $SNAP /bsppx.ml
28
28
29
29
build $SNAP/bsdep.ml : bspack | ./bin/bspack.exe
30
30
flags = -D BS_OCAMLDEP=true ${releaseMode} -bs-MD -module-alias Config=Config_whole_compiler -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I $OCAML_SRC_DRIVER -I $OCAML_SRC_TOOLS -I common -I ext -I syntax -I depends -I core -I stubs -I main
Original file line number Diff line number Diff line change @@ -3791,7 +3791,7 @@ let defaults_w = "+a-4-6-7-9-27-29-32..42-44-45-48-50-60-102";;
3791
3791
let defaults_warn_error = "-a+31";;
3792
3792
3793
3793
let () =
3794
- if not !Config.bs_only then (
3794
+ if not true then (
3795
3795
parse_options false defaults_w;
3796
3796
parse_options true defaults_warn_error;
3797
3797
)
@@ -303337,7 +303337,7 @@ let app_exp_mapper
303337
303337
Ast_attributes.is_bs with
303338
303338
| None -> default_expr_mapper self e
303339
303339
| Some pexp_attributes ->
303340
- if !Config.bs_only then
303340
+ if true then
303341
303341
{e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
303342
303342
pexp_attributes }
303343
303343
else {e with pexp_attributes } (* BS_NATIVE branch*)
You can’t perform that action at this time.
0 commit comments