Use a python timeout for the testsuite when we don't have a threaded RTS
[ghc.git] / testsuite / timeout / Makefile
1 TOP = ..
2 include $(TOP)/mk/boilerplate.mk
3
4 HC = $(GHC_INPLACE)
5 MKDEPENDHS = $(GHC_INPLACE)
6 SRC_HC_OPTS += -threaded
7
8 ifeq "$(Windows)" "NO"
9 SRC_HC_OPTS += -package unix
10 endif
11
12 HS_PROG = timeout
13
14 ifeq "$(findstring thr,$(GhcRTSWays))" "thr"
15 boot :: $(HS_PROG)
16 else
17 boot :: python-timeout
18 endif
19
20 python-timeout:
21 cp timeout.py timeout
22 chmod +x timeout
23
24 include $(TOP)/mk/target.mk