Permalink
Browse files

Make it easier to set GHC flags in benchmark

  • Loading branch information...
1 parent 72976df commit 0f64c32e604e84bd17a34dfd4622ae802daf7e67 @tibbe tibbe committed May 2, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 benchmarks/Makefile
View
@@ -1,14 +1,15 @@
ghc := ghc
+ghc-flags :=
programs := builder bench
.PHONY: all
all: $(programs)
builder: Builder.hs
- $(ghc) --make -O2 Builder.hs -o $@ -fforce-recomp -i../src
+ $(ghc) $(ghc-flags) --make -O2 Builder.hs -o $@ -fforce-recomp -i../src
bench: Benchmark.hs MemBench.hs CBenchmark.o
- $(ghc) --make -O2 -fliberate-case-threshold=1000 -fasm Benchmark.hs CBenchmark.o -o $@ -fforce-recomp -i../src
+ $(ghc) $(ghc-flags) --make -O2 -fliberate-case-threshold=1000 -fasm Benchmark.hs CBenchmark.o -o $@ -fforce-recomp -i../src
.PHONY: run-bench
run-bench: bench

0 comments on commit 0f64c32

Please sign in to comment.