summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-05-10 14:30:45 +0100
committerIan Lynagh <ian@well-typed.com>2013-05-10 14:31:42 +0100
commit8eb3cf9671a7acd7c715265ae8dd639257878178 (patch)
tree6de8f08800b6f2ca53e012c4a46de9271e6af176 /testsuite/mk
parentaf431267aee887c4b97af232d2c691cff88d24e1 (diff)
downloadhaskell-8eb3cf9671a7acd7c715265ae8dd639257878178.tar.gz
Tidy up the driver slightly
Diffstat (limited to 'testsuite/mk')
-rw-r--r--testsuite/mk/test.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index ae4f083bbf..ee6dd0abb9 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -47,7 +47,7 @@ else
RUNTEST_OPTS += -e ghc_with_native_codegen=0
endif
-BASE_LIBDIR := $(shell "$(GHC_PKG)" field base library-dirs | sed 's/^[^:]*: *//')
+BASE_LIBDIR := $(shell "$(GHC_PKG)" field base library-dirs --simple-output)
HAVE_VANILLA := $(shell if [ -f '$(subst \,/,$(BASE_LIBDIR))/Prelude.hi' ]; then echo YES; else echo NO; fi)
HAVE_DYNAMIC := $(shell if [ -f '$(subst \,/,$(BASE_LIBDIR))/Prelude.dyn_hi' ]; then echo YES; else echo NO; fi)
HAVE_PROFILING := $(shell if [ -f '$(subst \,/,$(BASE_LIBDIR))/Prelude.p_hi' ]; then echo YES; else echo NO; fi)