Skip to content

Commit c6d50cf

Browse files
committed
clean up
1 parent d637bed commit c6d50cf

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

jscomp/all.depend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ext/ext_bytes.cmx : ext/ext_bytes.cmi
66
ext/ext_char.cmx : ext/ext_char.cmi
77
ext/vec_gen.cmx :
88
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
1010
ext/string_vec.cmx : ext/resize_array.cmx ext/string_vec.cmi
1111
ext/int_vec.cmx : ext/ext_array.cmx stubs/bs_hash_stubs.cmx ext/int_vec.cmi
1212
ext/int_vec_util.cmx : ext/int_vec.cmx ext/int_vec_util.cmi

jscomp/bin/Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ ifndef EXE
55
EXE := # empty
66
endif
77
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
1114
bsppx.exe: config_bsppx.mli config_bsppx.ml bsppx.mli bsppx.ml
1215
$(NATIVE) $(OCAMLOPT_FLAGS) $^ -o $@
13-
16+
1417
bspp.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
3134
bspack.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

3540
all: bsppx.exe bspp.exe bsdep.exe bsc.exe bspack.exe bsb.exe bsb_helper.exe

0 commit comments

Comments
 (0)