X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=48a802af49a49c55f02209da27a2b1f269cc15ec;hb=5463b55b7dadc1e9918edb2d8666bf3ed195bc61;hp=357b51c5cc91eaeb773bf8521e03612302ad11b9;hpb=9be618cdf99b04ce7eef6eeabc168b59174bb843;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 357b51c..48a802a 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -491,6 +491,18 @@ compiler_stage1_HC_OPTS += $(GhcStage1HcOpts) compiler_stage2_HC_OPTS += $(GhcStage2HcOpts) compiler_stage3_HC_OPTS += $(GhcStage3HcOpts) +ifeq "$(GhcStage1DefaultNewCodegen)" "YES" +compiler_stage1_HC_OPTS += -DGHC_DEFAULT_NEW_CODEGEN +endif + +ifeq "$(GhcStage2DefaultNewCodegen)" "YES" +compiler_stage2_HC_OPTS += -DGHC_DEFAULT_NEW_CODEGEN +endif + +ifeq "$(GhcStage3DefaultNewCodegen)" "YES" +compiler_stage3_HC_OPTS += -DGHC_DEFAULT_NEW_CODEGEN +endif + ifneq "$(BINDIST)" "YES" compiler_stage2_TAGS_HC_OPTS = -package ghc