From 8394c0e5d85dac009acc716ed2abc92f5fedf778 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sun, 21 Apr 2013 23:35:48 +0200 Subject: Fix library flavor detection for the validate script as well --- testsuite/mk/test.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite/mk') diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 5c9e1ad184..ae4f083bbf 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/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 -- cgit v1.2.1