diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-12-14 23:29:47 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-12-14 23:29:47 +0000 |
commit | cf240aa067b68c2d1327760ce1a3c2dfc7b061e7 (patch) | |
tree | 55dd207958b58dae50e91c506d87955c0da3f737 /testsuite/mk | |
parent | 6f506011adbd8d8b179d6fd4de3151b05650b60e (diff) | |
download | haskell-cf240aa067b68c2d1327760ce1a3c2dfc7b061e7.tar.gz |
Only run dynamicToo001 if we have both vanilla and dynamic libraries
Diffstat (limited to 'testsuite/mk')
-rw-r--r-- | testsuite/mk/test.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 942271c0fc..6c974cc1d8 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -49,7 +49,8 @@ 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_PROFILING := $(shell if [ -f $(subst \,/,$(BASE_LIBDIR))/Prelude.p_a ]; 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 @@ -57,6 +58,12 @@ else RUNTEST_OPTS += -e ghc_with_vanilla=0 endif +ifeq "$(HAVE_DYNAMIC)" "YES" +RUNTEST_OPTS += -e ghc_with_dynamic=1 +else +RUNTEST_OPTS += -e ghc_with_dynamic=0 +endif + ifeq "$(HAVE_PROFILING)" "YES" RUNTEST_OPTS += -e ghc_with_profiling=1 else |