X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile.ghcbin;h=25a8a583414985c56829307eb8ac761ed947c1d2;hb=8226f00b071ea156753324dc9f2967dabc3cc571;hp=96bed259af40682b2ee09c361be288eb2a6f30a5;hpb=680f11d3f1ad9065c4969ed5d9db857cc245d778;p=ghc-hetmet.git diff --git a/compiler/Makefile.ghcbin b/compiler/Makefile.ghcbin index 96bed25..25a8a58 100644 --- a/compiler/Makefile.ghcbin +++ b/compiler/Makefile.ghcbin @@ -28,7 +28,13 @@ SRC_HC_OPTS += -optl-Xlinker -optl-E endif ifeq "$(GhcWithInterpreter)" "YES" -SRC_HC_OPTS += -DGHCI -DBREAKPOINT +SRC_HC_OPTS += -DGHCI + +# Should the debugger commands be enabled? +ifeq "$(GhciWithDebugger)" "YES" +SRC_HC_OPTS += -DDEBUGGER +endif + endif ifneq "$(GhcNotThreaded)" "YES" @@ -40,5 +46,8 @@ odir=stage$(stage) HS_SRCS = main/Main.hs HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS)))) $(odir)/main/Main.o : libHSghc$(_way).a +SRC_HC_OPTS += -fforce-recomp +# can't rely on GHC's recompilation checking here, because it won't spot +# changes in the ghc package. include $(TOP)/mk/target.mk