diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-01-27 09:48:31 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-01-27 09:48:31 +0000 |
commit | b6606434dd2de09a7fc6313da4ef9d6a9a455be9 (patch) | |
tree | 85bc903a043a5c53a6db16849899411cff522db4 /testsuite/mk/test.mk | |
parent | a8152ea98ef842bc3e044ee6ca7ad89b6a2336f8 (diff) | |
download | haskell-b6606434dd2de09a7fc6313da4ef9d6a9a455be9.tar.gz |
A better test for whether we have profiling
Sigh, another shell command.
Diffstat (limited to 'testsuite/mk/test.mk')
-rw-r--r-- | testsuite/mk/test.mk | 4 |
1 files changed, 3 insertions, 1 deletions
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 |