ref: b319e47808ef74e3ed23a624ac9965551a7f51b5
parent: 7b6d31689c011fd8505d1eb96c829e89688d89d2
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Sep 23 06:39:39 EDT 2015
Include necessary library deps in benchmarks.
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,10 @@
./mbldwrap.sh test:runtest
./mbldwrap.sh test
-bench: all
- $(MAKE) -C bench bench
+.PHONY: bench
+bench:
+ mbld
+ mbld bench:benchit
.PHONY: bootstrap
bootstrap: buildmyr
--- a/bench/bld.sub
+++ b/bench/bld.sub
@@ -1,10 +1,41 @@
-bin intsort = intsort.myr ;;
-bin copious-allocs = copious-allocs.myr ;;
-bin sha1-compute = sha1-compute.myr ;;
-bin bigfactorial = bigfactorial.myr ;;
-bin mandelbrot = mandelbrot.myr ;;
-bin regex-match = regex-match.myr ;;
-bin runbench = runbench.myr ;;
+bin intsort =
+ intsort.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
+bin copious-allocs =
+ copious-allocs.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
+bin sha1-compute =
+ sha1-compute.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+ lib @/lib/cryptohash:cryptohash
+;;
+bin bigfactorial =
+ bigfactorial.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
+bin mandelbrot =
+ mandelbrot.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+ lib @/lib/bio:bio
+;;
+bin regex-match =
+ regex-match.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+ lib @/lib/regex:regex
+;;
+bin runbench =
+ runbench.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
cmd benchit =
./runbench