[commit: testsuite] master: Fix library flavor detection for the validate script as well (efe31a3)

Páli Gábor János pali.gabor at gmail.com
Sun Apr 21 23:39:03 CEST 2013


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

On branch  : master

https://github.com/ghc/testsuite/commit/efe31a34613cfbf61c25b993ff6f418f06cf7a2c

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

commit efe31a34613cfbf61c25b993ff6f418f06cf7a2c
Author: Gabor Pali <pali.gabor at gmail.com>
Date:   Sun Apr 21 23:35:48 2013 +0200

    Fix library flavor detection for the validate script as well

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

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

diff --git a/mk/test.mk b/mk/test.mk
index 5c9e1ad..ae4f083 100644
--- a/mk/test.mk
+++ b/mk/test.mk
@@ -48,9 +48,9 @@ RUNTEST_OPTS += -e ghc_with_native_codegen=0
 endif
 
 BASE_LIBDIR := $(shell "$(GHC_PKG)" field base library-dirs | sed 's/^[^:]*: *//')
-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)
+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)
 
 ifeq "$(HAVE_VANILLA)" "YES"
 RUNTEST_OPTS += -e ghc_with_vanilla=1





More information about the ghc-commits mailing list