[commit: testsuite] master: Tidy up the driver slightly (82ebad7)

Ian Lynagh igloo at earth.li
Fri May 10 15:40:36 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

https://github.com/ghc/testsuite/commit/82ebad75a620fb0937efa38f7143f9b35080780a

>---------------------------------------------------------------

commit 82ebad75a620fb0937efa38f7143f9b35080780a
Author: Ian Lynagh <ian at well-typed.com>
Date:   Fri May 10 14:30:45 2013 +0100

    Tidy up the driver slightly

>---------------------------------------------------------------

 mk/test.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mk/test.mk b/mk/test.mk
index ae4f083..ee6dd0a 100644
--- a/mk/test.mk
+++ b/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)





More information about the ghc-commits mailing list