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