@@ -12,45 +12,39 @@ OCAML_SRC_TYPING=$native_ocaml_path/typing
12
12
OCAML_SRC_BYTECOMP = $native_ocaml_path /bytecomp
13
13
OCAML_SRC_DRIVER = $native_ocaml_path /driver
14
14
OCAML_SRC_TOOLS = $native_ocaml_path /tools
15
- includes = -I js_parser -I stubs -I ext -I common -I frontend -I depends -I core -I super_errors -I outcome_printer -I bsb -I ounit -I ounit_tests -I napkin -I main
15
+ includes = -I js_parser -I stubs -I ext -I common -I frontend -I bsb_helper -I depends -I core -I super_errors -I outcome_printer -I bsb -I ounit -I ounit_tests -I napkin -I main
16
16
SNAP = ../lib/$snapshot_path
17
17
18
- o snapshot: phony $SNAP /whole_compiler.ml $SNAP /bsb_helper.ml $SNAP /unstable/all_ounit_tests.ml
18
+ build snapshot : phony $SNAP/whole_compiler.ml $SNAP/bsb_helper.ml $SNAP/unstable/all_ounit_tests.ml
19
19
# $SNAP/bspp.ml
20
- o $SNAP /whole_compiler.ml: bspack | ./bin/bspack.exe $LTO
20
+ build $SNAP/whole_compiler.ml : bspack | ./bin/bspack.exe $LTO
21
21
flags = ${releaseMode} -D BS_ONLY=true -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
22
22
main = Rescript_compiler_main
23
23
post_process = && node $LTO $SNAP /whole_compiler.ml
24
24
25
- o $SNAP /bsb_helper.ml: bspack | ./bin/bspack.exe $LTO
26
- flags = -bs-MD ${releaseMode} -I stubs -I common -I ext -I frontend -I depends -I bsb_helper -I main
25
+ build $SNAP/bsb_helper.ml : bspack | ./bin/bspack.exe $LTO
26
+ flags = -bs-MD ${releaseMode} $includes
27
27
main = Bsb_helper_main
28
28
29
- # o $SNAP/bsb.ml: bspack | ./bin/bspack.exe $LTO
30
- # flags = -D BS_MIN_LEX_DEPS=true -bs-MD ${releaseMode} -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I stubs -I common -I ext -I frontend -I depends -I bsb -I ext -I main
31
- # main = Bsb_main
32
29
33
- o $SNAP /rescript.ml: bspack | ./bin/bspack.exe $LTO
34
- flags = -D BS_MIN_LEX_DEPS=true -bs-MD ${releaseMode} -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I stubs -I common -I ext -I frontend -I depends -I bsb -I ext -I main
30
+ build $SNAP/rescript.ml : bspack | ./bin/bspack.exe $LTO
31
+ flags = -D BS_MIN_LEX_DEPS=true -bs-MD ${releaseMode} -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING $includes
35
32
main = Rescript_main
36
- # o $SNAP/bspp.ml: bspack | ./bin/bspack.exe $LTO
37
- # flags = -D BS_MIN_LEX_DEPS=true ${releaseMode} -bs-MD -module-alias Config=Config_whole_compiler -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING?parser -I common -I ext -I frontend -I depends -I bspp -I core -I main
38
- # main = Bspp_main
39
33
40
34
41
35
42
36
43
37
44
38
o $SNAP /unstable/all_ounit_tests.ml: bspack | ./bin/bspack.exe $LTO
45
- flags = -bs-MD -I ounit -I ounit_tests -I stubs -I bsb -I bsb_helper -I common -I ext -I frontend -I depends -I bspp -I core -I main
39
+ flags = -bs-MD $includes
46
40
main = Ounit_tests_main
47
41
48
42
o $SNAP /unstable/bspack.ml: bspack | ./bin/bspack.exe $LTO
49
- flags = -D BS_PACK=true -bs-MD -module-alias Config=Config_whole_compiler -I $OCAML_SRC_PARSING -I $OCAML_SRC_UTILS -I stubs -I ext -I common -I depends -I core -I main -bs-main Bspack_main
43
+ flags = -D BS_PACK=true -bs-MD -module-alias Config=Config_whole_compiler -I $OCAML_SRC_PARSING -I $OCAML_SRC_UTILS $includes
50
44
main = Bspack_main
51
45
52
46
o $SNAP /unstable/js_compiler.ml: bspack | ./bin/bspack.exe $LTO
53
- flags = -D BS_BROWSER=true -D BS_ONLY=true -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 -I stubs -I ext -I napkin -I frontend -I depends -I common -I core -I super_errors -I bsb -I outcome_printer -I js_parser -I main
47
+ flags = -D BS_BROWSER=true -D BS_ONLY=true -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
54
48
main = Jsoo_main
55
49
56
50
0 commit comments