summaryrefslogtreecommitdiff
path: root/testsuite/timeout
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-01-16 17:39:17 +0000
committerIan Lynagh <igloo@earth.li>2009-01-16 17:39:17 +0000
commit835cd3393de17822d7275402f9ff3e70f392c36e (patch)
tree6fe299ae745f1dd6e831838729505c7241ffcbdc /testsuite/timeout
parent82de8caa4fd1ee1102344c721791a12c98b93e5b (diff)
downloadhaskell-835cd3393de17822d7275402f9ff3e70f392c36e.tar.gz
Hack to find gcc for an in-place ghc
Diffstat (limited to 'testsuite/timeout')
-rw-r--r--testsuite/timeout/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/timeout/Makefile b/testsuite/timeout/Makefile
index bdea066616..be7023a8b1 100644
--- a/testsuite/timeout/Makefile
+++ b/testsuite/timeout/Makefile
@@ -15,6 +15,10 @@ TIMEOUT_PROGRAM = install-inplace/bin/timeout$(exeext)
PREFIX := $(abspath install-inplace)
$(eval $(call canonicalise,PREFIX))
+ifneq "$(GCC)" ""
+WITH_GCC = --with-gcc=$(GCC)
+endif
+
ifeq "$(filter thr, $(GhcRTSWays))" ""
$(TIMEOUT_PROGRAM): timeout.py
rm -rf install-inplace
@@ -26,7 +30,9 @@ else
$(TIMEOUT_PROGRAM): timeout.hs
rm -rf install-inplace
$(TEST_HC) --make Setup
- ./Setup configure --with-compiler=$(TEST_HC) --with-hc-pkg=$(GHC_PKG) \
+ ./Setup configure --with-compiler=$(TEST_HC) \
+ --with-hc-pkg=$(GHC_PKG) \
+ $(WITH_GCC) \
--ghc-option=-threaded --prefix=$(PREFIX)
./Setup build
./Setup install