summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2013-05-12 01:44:02 +0100
committerIan Lynagh <igloo@earth.li>2013-05-12 20:25:10 +0100
commitb35a6ce0e34255d200ddcf341ffc645fd237ea32 (patch)
tree438810e43039e69db6af11711190b1ea0d399ef9 /ghc.mk
parentb2cae55fdd2b4b331bd609380b2667904d8a2eda (diff)
downloadhaskell-b35a6ce0e34255d200ddcf341ffc645fd237ea32.tar.gz
More work towards dynamic programs on Windows
Dynamic GHC is now working in-place, but pathologically slow due to the DLL split. (GHC assumes that all intra-package calls are in the same DLL, but that isn't true when we split the GHC package into 2 DLLs. That means that GHC's startup time is around 22 seconds, as it is doing run-time linking). Also, ghci isn't actually working yet: $ inplace/bin/ghc-stage2 --interactive GHCi, version 7.7.20130512: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... <command line>: can't load .so/.DLL for: HSghc-prim-0.3.1.0.dll (addDLL: could not load DLL) ghc-stage2.exe: HSghc-prim-0.3.1.0: The specified module could not be found.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 4bd2de3474..d519c2044f 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -204,6 +204,15 @@ GHCI_WAY = v
HADDOCK_WAY = v
endif
+WINDOWS_DYN_PROG_RTS := rts
+ifeq "$(GhcThreaded)" "YES"
+WINDOWS_DYN_PROG_RTS := $(WINDOWS_DYN_PROG_RTS)_thr
+endif
+ifeq "$(GhcDebugged)" "YES"
+WINDOWS_DYN_PROG_RTS := $(WINDOWS_DYN_PROG_RTS)_debug
+endif
+WINDOWS_DYN_PROG_RTS := $(WINDOWS_DYN_PROG_RTS)_dyn_LIB_NAME
+
# -----------------------------------------------------------------------------
# Compilation Flags