Make GHCi & TH work when the compiler is built with -prof
[ghc.git] / testsuite / tests / cabal / cabal04 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 SETUP=./Setup -v0
6
7 # This tests that we can build a Cabal package that uses TH with both
8 # profiling and dynamic linking. (#3604)
9
10 # omitting -rtsopts from --ghc-options avoids a warning from GHC when
11 # building the shared library (-rtsopts has no effect with -shared)
12
13 cabal04:
14 $(MAKE) clean
15 '$(TEST_HC)' -v0 --make Setup
16 $(SETUP) clean
17 $(SETUP) configure --with-ghc='$(TEST_HC)' --ghc-options='$(filter-out -rtsopts,$(TEST_HC_OPTS))' $(VANILLA) $(PROF) $(DYN) --ghc-options='$(ghcThWayFlags)'
18 $(SETUP) build 2> err
19 ! grep -v "Creating library file" err
20 ifneq "$(CLEANUP)" ""
21 $(MAKE) clean
22 endif
23
24 clean :
25 $(RM) -r *.o *.hi dist Setup$(exeext) err
26