summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/driver/1959
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-04-20 17:39:11 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-04-20 17:39:11 +0100
commit6c32ee85bb4c5f6052f66617f2acadab69189fc2 (patch)
tree8a67679b1e12ea313205b43884b4cf4386777ee9 /testsuite/tests/ghc-regress/driver/1959
parent16fb7aebe43a55c515c5c89bf58dd12fd323b21f (diff)
downloadhaskell-6c32ee85bb4c5f6052f66617f2acadab69189fc2.tar.gz
Add TEST_HC_OPTS to every Makefile invocation of TEST_HC
In the testsuite there are numerous Makefiles that invoke $(TEST_HC). But, unlike the tests invoked directly by the harness, they didn't pass -dno-debug-output, or $(EXTRA_HC_OPTS). This patch goes part-way towards the goal of making the two consistent: * Almost all invocations in the Makefiles now go '$(TEST_HC)' $(TEST_HC_OPTS) * In test.mk we initialise TEST_HC_OPTS = -dno-debug-output $(EXTRA_HC_OPTS) Still to come (I don't know how to do these) * The invocations of TEST_HC via cabal are not treated (eg cabal01, cabal04), and they should be * TEST_HC_OPTS should probably be initialised the same way as the Python script computes the flags to pass to the TEST_HC that it calls directly
Diffstat (limited to 'testsuite/tests/ghc-regress/driver/1959')
-rw-r--r--testsuite/tests/ghc-regress/driver/1959/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/tests/ghc-regress/driver/1959/Makefile b/testsuite/tests/ghc-regress/driver/1959/Makefile
index 4f21b68c57..766a606b2b 100644
--- a/testsuite/tests/ghc-regress/driver/1959/Makefile
+++ b/testsuite/tests/ghc-regress/driver/1959/Makefile
@@ -5,11 +5,11 @@ include $(TOP)/mk/test.mk
# Test recompilation bug #1959, which failed in 6.8.1 (and earlier)
compile ::
- '$(TEST_HC)' -c -O E.hs
- '$(TEST_HC)' -c -O D.hs
- '$(TEST_HC)' -c -O -funfolding-use-threshold=0 C.hs
- '$(TEST_HC)' -c -O B.hs
- '$(TEST_HC)' E.o D.o C.o B.o -o prog
+ '$(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