From b6606434dd2de09a7fc6313da4ef9d6a9a455be9 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 27 Jan 2009 09:48:31 +0000 Subject: A better test for whether we have profiling Sigh, another shell command. --- testsuite/mk/test.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuite/mk/test.mk') diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 184fa50ce2..5078419554 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -43,7 +43,9 @@ else RUNTEST_OPTS += -e ghc_with_native_codegen=0 endif -ifeq "$(filter p, $(GhcRTSWays))" "p" +HAVE_PROFILING:=$(if $(wildcard $(shell $(GHC_PKG) field haskell98 library-dirs | sed 's/^[^:]*: *//')/libHShaskell98-*_p.a),YES,NO) + +ifeq "$(HAVE_PROFILING)" "YES" RUNTEST_OPTS += -e ghc_with_profiling=1 else RUNTEST_OPTS += -e ghc_with_profiling=0 -- cgit v1.2.1