File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ext/ext_bytes.cmx : ext/ext_bytes.cmi
6
6
ext/ext_char.cmx : ext/ext_char.cmi
7
7
ext/vec_gen.cmx :
8
8
ext/resize_array.cmx : ext/vec_gen.cmx ext/ext_array.cmx \
9
- stubs/bs_hash_stubs.cmx ext/resize_array.cmi
9
+ ext/resize_array.cmi
10
10
ext/string_vec.cmx : ext/resize_array.cmx ext/string_vec.cmi
11
11
ext/int_vec.cmx : ext/ext_array.cmx stubs/bs_hash_stubs.cmx ext/int_vec.cmi
12
12
ext/int_vec_util.cmx : ext/int_vec.cmx ext/int_vec_util.cmi
Original file line number Diff line number Diff line change @@ -5,12 +5,15 @@ ifndef EXE
5
5
EXE := # empty
6
6
endif
7
7
NATIVE =ocamlopt.opt$(EXE )
8
-
9
- OCAMLOPT_FLAGS = -inline 1000 -g -w -a ../stubs/ext_basic_hash_stubs.c
10
-
8
+ BSC_FLAGS = -w -a -I ../runtime -I ../stdlib -bs-files
9
+ BSC =./bsc.exe
10
+ OCAMLOPT_FLAGS = -g -w -a ../stubs/ext_basic_hash_stubs.c
11
+ # -inline 1000 makes size too large
12
+ # TODO: make sure it can be bootstrapped, at least is a very good
13
+ # test case of our optimizations
11
14
bsppx.exe : config_bsppx.mli config_bsppx.ml bsppx.mli bsppx.ml
12
15
$(NATIVE ) $(OCAMLOPT_FLAGS ) $^ -o $@
13
-
16
+
14
17
bspp.exe : bspp.mli bspp.ml
15
18
$(NATIVE ) $(OCAMLOPT_FLAGS ) $^ -o $@
16
19
@@ -31,5 +34,7 @@ bsc.exe: config_whole_compiler.mli config_whole_compiler.ml whole_compiler.mli
31
34
bspack.exe : config_bspack.mli config_bspack.ml bspack.mli bspack.ml
32
35
$(NATIVE ) $(OCAMLOPT_FLAGS ) unix.cmxa $^ -o $@
33
36
37
+ bspack.js : config_bspack.mli config_bspack.ml bspack.mli bspack.ml
38
+ $(BSC ) $(BSC_FLAGS ) $^
34
39
35
40
all : bsppx.exe bspp.exe bsdep.exe bsc.exe bspack.exe bsb.exe bsb_helper.exe
You can’t perform that action at this time.
0 commit comments