Skip to content

Commit 7c57322

Browse files
committedJun 6, 2021
deep embedding
1 parent 73f7aa7 commit 7c57322

File tree

8 files changed

+116
-194
lines changed

8 files changed

+116
-194
lines changed
 

‎jscomp/bspp/parser.ml

-125
This file was deleted.

‎jscomp/bytecomp

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ocaml/bytecomp

‎jscomp/parsing

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ocaml/parsing

‎jscomp/snapshot.ninja

+10-16
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,39 @@ OCAML_SRC_TYPING=$native_ocaml_path/typing
1212
OCAML_SRC_BYTECOMP=$native_ocaml_path/bytecomp
1313
OCAML_SRC_DRIVER=$native_ocaml_path/driver
1414
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
1616
SNAP=../lib/$snapshot_path
1717

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
1919
# $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
2121
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
2222
main = Rescript_compiler_main
2323
post_process = && node $LTO $SNAP/whole_compiler.ml
2424

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
2727
main = Bsb_helper_main
2828

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
3229

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
3532
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
3933

4034

4135

4236

4337

4438
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
4640
main = Ounit_tests_main
4741

4842
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
5044
main = Bspack_main
5145

5246
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
5448
main = Jsoo_main
5549

5650

‎jscomp/typing

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ocaml/typing

‎jscomp/utils

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ocaml/utils

0 commit comments

Comments
 (0)