From b7126674a5f4ead9c73a6a2cbe0fbc85f7d36c12 Mon Sep 17 00:00:00 2001 From: Ian Lynagh <ian@well-typed.com> Date: Wed, 13 Mar 2013 21:29:27 +0000 Subject: 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. --- compiler/ghc.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compiler/ghc.mk') diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 0c68d6d45e..54d828be1a 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -110,6 +110,12 @@ ifeq "$(UseLibFFIForAdjustors)" "YES" @echo 'cLibFFI = True' >> $@ 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) -- cgit v1.2.1