fix $(HAVE_PROFILING) on Windows
authorSimon Marlow <marlowsd@gmail.com>
Mon, 19 Dec 2011 13:58:47 +0000 (13:58 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 19 Dec 2011 14:12:04 +0000 (14:12 +0000)
testsuite/mk/test.mk

index c8db53d..789ca9d 100644 (file)
@@ -51,7 +51,7 @@ RUNTEST_OPTS += -e ghc_with_native_codegen=0
 endif
 
 HASKELL98_LIBDIR := $(shell "$(GHC_PKG)" field haskell98 library-dirs | sed 's/^[^:]*: *//')
-HAVE_PROFILING := $(shell if [ -f $(HASKELL98_LIBDIR)/libHShaskell98-*_p.a ]; then echo YES; else echo NO; fi)
+HAVE_PROFILING := $(shell if [ -f $(subst \,/,$(HASKELL98_LIBDIR))/libHShaskell98-*_p.a ]; then echo YES; else echo NO; fi)
 
 ifeq "$(HAVE_PROFILING)" "YES"
 RUNTEST_OPTS += -e ghc_with_profiling=1