Commit 192b2910 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix detection of whether we have profiling libs

It broke when the installation path contained a space
parent a7900cf0
...@@ -44,7 +44,8 @@ else ...@@ -44,7 +44,8 @@ else
RUNTEST_OPTS += -e ghc_with_native_codegen=0 RUNTEST_OPTS += -e ghc_with_native_codegen=0
endif 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)
RUNTEST_OPTS += -e ghc_with_profiling=1 RUNTEST_OPTS += -e ghc_with_profiling=1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment