Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make it easier to set GHC flags in benchmark

  • Loading branch information...
commit 0f64c32e604e84bd17a34dfd4622ae802daf7e67 1 parent 72976df
Johan Tibell tibbe authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 benchmarks/Makefile
5 benchmarks/Makefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.