Skip to content
Browse files

Add the -prof flag when linking benchmarks with profiling enabled

  • Loading branch information...
1 parent 2adfeaa commit f629de38227dbf9ac7eb3c5a2ca9696726a18525 @tibbe committed Mar 20, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 benchmarks/Makefile
  2. +2 −1 tests/common.mk
View
2 benchmarks/Makefile
@@ -57,7 +57,7 @@ timers: $(lib) Args.o Timers.o
$(ghc) $(ghc-flags) -threaded -o $@ $(filter %.o,$^) $(lib)
%.o: %.hs
- $(ghc) $(ghc-flags) $(ghc-opt-flags) $(ghc-prof-flags) -c -o $@ $<
+ $(ghc) $(ghc-flags) $(ghc-opt-flags) -c -o $@ $<
%.o: %.c
$(cc) $(cc-opt-flags) -c -o $@ $<
View
3 tests/common.mk
@@ -22,7 +22,8 @@ ghc-base-flags := -funbox-strict-fields \
-package bytestring -ignore-package $(package) \
-fno-ignore-asserts
ghc-base-flags += -Wall -fno-warn-orphans -fno-warn-missing-signatures
-ghc-flags := $(ghc-base-flags) -i../dist/build -package-name $(package)-$(version)
+ghc-flags := $(ghc-base-flags) -i../dist/build \
+ -package-name $(package)-$(version) $(ghc-prof-flags)
ghc-hpc-flags := $(ghc-base-flags) -fhpc -fno-ignore-asserts -odir hpcdir \
-hidir hpcdir -i..
lib := ../dist/build/libHS$(package)-$(version)$(lib-suffix).a

0 comments on commit f629de3

Please sign in to comment.
Something went wrong with that request. Please try again.