diff options
author | Ian Lynagh <igloo@earth.li> | 2010-03-03 23:50:23 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-03-03 23:50:23 +0000 |
commit | 192b2910c4be9bbff338c3bc6ea1e79d74c868ff (patch) | |
tree | 6be4efc64b89d456f049bf27aeda91139d2c1ce0 /testsuite/mk | |
parent | a7900cf0b512496f869c637adfe0724cac9744b8 (diff) | |
download | haskell-192b2910c4be9bbff338c3bc6ea1e79d74c868ff.tar.gz |
Fix detection of whether we have profiling libs
It broke when the installation path contained a space
Diffstat (limited to 'testsuite/mk')
-rw-r--r-- | testsuite/mk/test.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 09c670b365..32c7ec3455 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -44,7 +44,8 @@ else RUNTEST_OPTS += -e ghc_with_native_codegen=0 endif -HAVE_PROFILING:=$(if $(wildcard $(shell "$(GHC_PKG)" field haskell98 library-dirs | sed 's/^[^:]*: *//')/libHShaskell98-*_p.a),YES,NO) +HASKELL98_LIBDIR := $(shell "$(GHC_PKG)" field haskell98 library-dirs | sed 's/^[^:]*: *//') +HAVE_PROFILING := $(shell if [ -f $(HASKELL98_LIBDIR)/libHShaskell98-*_p.a ]; then echo YES; else echo NO; fi) ifeq "$(HAVE_PROFILING)" "YES" RUNTEST_OPTS += -e ghc_with_profiling=1 |