diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-13 21:29:27 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-15 00:49:49 +0000 |
commit | b7126674a5f4ead9c73a6a2cbe0fbc85f7d36c12 (patch) | |
tree | 767f78388d2e73d317a64d1c106402de6f9014ed /compiler/ghc.mk | |
parent | 5319ea79fa1572b7d411548532031f9d19b928c6 (diff) | |
download | haskell-b7126674a5f4ead9c73a6a2cbe0fbc85f7d36c12.tar.gz |
By default, use the dynamic way for programs in the GHC tree
In particular, this means that GHCi will use DLLs, rather than loading
object files itself.
Diffstat (limited to 'compiler/ghc.mk')
-rw-r--r-- | compiler/ghc.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 0c68d6d45e..54d828be1a 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -111,6 +111,12 @@ ifeq "$(UseLibFFIForAdjustors)" "YES" else @echo 'cLibFFI = False' >> $@ endif + @echo 'cDYNAMIC_GHC_PROGRAMS :: Bool' >> $@ +ifeq "$(DYNAMIC_GHC_PROGRAMS)" "YES" + @echo 'cDYNAMIC_GHC_PROGRAMS = True' >> $@ +else + @echo 'cDYNAMIC_GHC_PROGRAMS = False' >> $@ +endif @echo done. # ----------------------------------------------------------------------------- @@ -483,6 +489,10 @@ $(foreach way,$(compiler_stage3_WAYS),\ # switch off the recompilation checker for that module: compiler/prelude/PrimOp_HC_OPTS += -fforce-recomp +ifeq "$(DYNAMIC_GHC_PROGRAMS)" "YES" +compiler/utils/Util_HC_OPTS += -DDYNAMIC_GHC_PROGRAMS +endif + # LibFFI.hs #includes ffi.h ifneq "$(UseSystemLibFFI)" "YES" compiler/stage2/build/LibFFI.hs : $(libffi_HEADERS) |