blob: 766a606b2b2251c08926a06eda0f396ac42c0a0b (
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
# Test recompilation bug #1959, which failed in 6.8.1 (and earlier)
compile ::
'$(TEST_HC)' $(TEST_HC_OPTS) -c -O E.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -c -O D.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -c -O -funfolding-use-threshold=0 C.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -c -O B.hs
'$(TEST_HC)' $(TEST_HC_OPTS) E.o D.o C.o B.o -o prog
clean ::
rm -f *.o *.hi E.hs
dotest ::
$(MAKE) clean
cp E1.hs E.hs
$(MAKE) compile
./prog
sleep 1
cp E2.hs E.hs
$(MAKE) compile
./prog
|