X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fghc.mk;h=c9313948cee3493e8df1b7ddd3bfc6e8819cdb79;hb=cd7593af81c290085eb857d5b2d05aeaf9cb2cf0;hp=3a3edec1cef6f7b3c3159300d1ee1ade9b479abf;hpb=46aed8a4a084add708bbd119d19905105d5f0d72;p=ghc-hetmet.git diff --git a/ghc/ghc.mk b/ghc/ghc.mk index 3a3edec..c931394 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -29,11 +29,8 @@ endif ifeq "$(GhcThreaded)" "YES" # Use threaded RTS with GHCi, so threads don't get blocked at the prompt. -ghc_HC_OPTS += -threaded -endif - -ifeq "$(BuildSharedLibs)" "YES" -ghc_HC_OPTS += -dynamic +ghc_stage2_HC_OPTS += -threaded +ghc_stage3_HC_OPTS += -threaded endif # XXX ToDp @@ -41,7 +38,10 @@ endif ghc_stage1_MODULES = Main -ghc_stage2_MODULES = $(ghc_stage1_MODULES) GhciMonad GhciTags InteractiveUI +ghc_stage2_MODULES = $(ghc_stage1_MODULES) +ifeq "$(GhcWithInterpreter)" "YES" +ghc_stage2_MODULES += GhciMonad GhciTags InteractiveUI +endif ghc_stage3_MODULES = $(ghc_stage2_MODULES) ghc_stage1_PROG = ghc-stage1$(exeext) @@ -107,6 +107,11 @@ ghc/stage1/build/tmp/$(ghc_stage1_PROG) : $(compiler_stage1_v_LIB) ghc/stage2/build/tmp/$(ghc_stage2_PROG) : $(compiler_stage2_v_LIB) ghc/stage3/build/tmp/$(ghc_stage3_PROG) : $(compiler_stage3_v_LIB) +# Modules here import HsVersions.h, so we need ghc_boot_platform.h +$(ghc_stage1_depfile) : compiler/stage1/$(PLATFORM_H) +$(ghc_stage2_depfile) : compiler/stage2/$(PLATFORM_H) +$(ghc_stage3_depfile) : compiler/stage3/$(PLATFORM_H) + all_ghc_stage1 : $(GHC_STAGE1) all_ghc_stage2 : $(GHC_STAGE2) all_ghc_stage3 : $(GHC_STAGE3)