Skip to content

Commit

Permalink
Add the -prof flag when linking benchmarks with profiling enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbe committed Mar 20, 2010
1 parent 2adfeaa commit f629de3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/Makefile
Expand Up @@ -57,7 +57,7 @@ timers: $(lib) Args.o Timers.o
$(ghc) $(ghc-flags) -threaded -o $@ $(filter %.o,$^) $(lib) $(ghc) $(ghc-flags) -threaded -o $@ $(filter %.o,$^) $(lib)


%.o: %.hs %.o: %.hs
$(ghc) $(ghc-flags) $(ghc-opt-flags) $(ghc-prof-flags) -c -o $@ $< $(ghc) $(ghc-flags) $(ghc-opt-flags) -c -o $@ $<


%.o: %.c %.o: %.c
$(cc) $(cc-opt-flags) -c -o $@ $< $(cc) $(cc-opt-flags) -c -o $@ $<
Expand Down
3 changes: 2 additions & 1 deletion tests/common.mk
Expand Up @@ -22,7 +22,8 @@ ghc-base-flags := -funbox-strict-fields \
-package bytestring -ignore-package $(package) \ -package bytestring -ignore-package $(package) \
-fno-ignore-asserts -fno-ignore-asserts
ghc-base-flags += -Wall -fno-warn-orphans -fno-warn-missing-signatures 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 \ ghc-hpc-flags := $(ghc-base-flags) -fhpc -fno-ignore-asserts -odir hpcdir \
-hidir hpcdir -i.. -hidir hpcdir -i..
lib := ../dist/build/libHS$(package)-$(version)$(lib-suffix).a lib := ../dist/build/libHS$(package)-$(version)$(lib-suffix).a
Expand Down

0 comments on commit f629de3

Please sign in to comment.