diff options
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 |