summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-04 20:44:41 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-04 22:13:58 +0100
commitb49ad6bb4e85bc16b60c176672b448e30d333d7c (patch)
treece38d5639ea9315bef4839ea00d62916ba44c7a2 /ghc.mk
parent16a8414061a1fef7d90e162e5253d3005cb11806 (diff)
downloadhaskell-b49ad6bb4e85bc16b60c176672b448e30d333d7c.tar.gz
Load the right object files in ghci
When we have a dynamic ghc, we need to load the dynamic object files
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index f2ee2f9bc8..1147452531 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -184,6 +184,12 @@ include rules/way-prelims.mk
$(foreach way,$(ALL_WAYS),\
$(eval $(call way-prelims,$(way))))
+ifeq "$(DYNAMIC_BY_DEFAULT)" "YES"
+GHCI_WAY = dyn
+else
+GHCI_WAY = v
+endif
+
# -----------------------------------------------------------------------------
# Compilation Flags