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
66ext/ext_char.cmx : ext/ext_char.cmi
77ext/vec_gen.cmx :
88ext/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
1010ext/string_vec.cmx : ext/resize_array.cmx ext/string_vec.cmi
1111ext/int_vec.cmx : ext/ext_array.cmx stubs/bs_hash_stubs.cmx ext/int_vec.cmi
1212ext/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
55 EXE := # empty
66endif
77NATIVE =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
1114bsppx.exe : config_bsppx.mli config_bsppx.ml bsppx.mli bsppx.ml
1215 $(NATIVE ) $(OCAMLOPT_FLAGS ) $^ -o $@
13-
16+
1417bspp.exe : bspp.mli bspp.ml
1518 $(NATIVE ) $(OCAMLOPT_FLAGS ) $^ -o $@
1619
@@ -31,5 +34,7 @@ bsc.exe: config_whole_compiler.mli config_whole_compiler.ml whole_compiler.mli
3134bspack.exe : config_bspack.mli config_bspack.ml bspack.mli bspack.ml
3235 $(NATIVE ) $(OCAMLOPT_FLAGS ) unix.cmxa $^ -o $@
3336
37+ bspack.js : config_bspack.mli config_bspack.ml bspack.mli bspack.ml
38+ $(BSC ) $(BSC_FLAGS ) $^
3439
3540all : 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