Commit b6606434 authored by Simon Marlow's avatar Simon Marlow
Browse files

A better test for whether we have profiling

Sigh, another shell command.
parent a8152ea9
......@@ -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
......
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