Skip to content

Commit 938123b

Browse files
author
Iwan
committed
Fix Makefile: make benchmark and roundtrip-tests compile/run again
1 parent 506003c commit 938123b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntax/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ build-native: lib/refmt.exe lib/napkinscript.exe depend
5252
bootstrap: build-native
5353
ocaml unix.cma ./scripts/bspack.ml -bs-main Napkin_cli -I src -o ./lib/napkinscript.ml
5454
./lib/napkinscript.exe -parse ml -print ns ./lib/Napkinscript.ml > ./lib/Napkinscript2.ml
55-
$(OCAMLOPT) -w a -pp "./lib/napkinscript.exe" -O2 -o ./lib/napkinscript2.exe -I +compiler-libs ocamlcommon.cmxa -I lib ./lib/Napkinscript2.ml
55+
$(OCAMLOPT) -w a -pp "./lib/napkinscript.exe -print binary" -O2 -o ./lib/napkinscript2.exe -I +compiler-libs ocamlcommon.cmxa -I lib ./lib/Napkinscript2.ml
5656
mv ./lib/napkinscript2.exe ./lib/napkinscript.exe
5757

5858
lib/refmt.exe: vendor/refmt_main3.ml
@@ -61,8 +61,8 @@ lib/refmt.exe: vendor/refmt_main3.ml
6161
bench: lib/bench.exe
6262
./lib/bench.exe
6363

64-
lib/bench.exe: benchmarks/refmt_main3b.cmx benchmarks/Benchmark.ml $(CLI_FILES)
65-
$(OCAMLOPT) $(OCAMLFLAGS) -O2 -o ./lib/bench.exe -bin-annot -I +compiler-libs ocamlcommon.cmxa benchmarks/mac_osx_time.c -I benchmarks -I src $(CLI_FILES) benchmarks/refmt_main3b.cmx benchmarks/Benchmark.ml
64+
lib/bench.exe: benchmarks/refmt_main3b.cmx benchmarks/Benchmark.ml $(API_FILES)
65+
$(OCAMLOPT) $(OCAMLFLAGS) -O2 -o ./lib/bench.exe -bin-annot -I +compiler-libs ocamlcommon.cmxa benchmarks/mac_osx_time.c -I benchmarks -I src $(API_FILES) benchmarks/refmt_main3b.cmx benchmarks/Benchmark.ml
6666

6767
benchmarks/refmt_main3b.cmx: benchmarks/refmt_main3b.ml
6868
$(OCAMLOPT) -c -O2 -I +compiler-libs ocamlcommon.cmxa benchmarks/refmt_main3b.ml

0 commit comments

Comments
 (0)