X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=1c61494b188e70241cd31edaaa3405fde9db2fc7;hb=9d94dcd4dbb3e77d6938f8a7f59187f04663241b;hp=ef662f6864d9dc1b4da8ff75f00e6f338d1f53ef;hpb=e93b244967871dde378b9488c9abe2db3b8d667c;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index ef662f6..1c61494 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -439,13 +439,18 @@ compiler_stage1_SplitObjs = NO compiler_stage2_SplitObjs = NO compiler_stage3_SplitObjs = NO -ifeq "$(stage)" "1" +# if stage is set to something other than "1" or "", disable stage 1 +ifneq "$(filter-out 1,$(stage))" "" +compiler_stage1_NOT_NEEDED = YES +endif +# if stage is set to something other than "2" or "", disable stage 2 +ifneq "$(filter-out 2,$(stage))" "" compiler_stage2_NOT_NEEDED = YES endif +# stage 3 has to be requested explicitly with stage=3 ifneq "$(stage)" "3" compiler_stage3_NOT_NEEDED = YES endif - $(eval $(call build-package,compiler,stage1,0)) $(eval $(call build-package,compiler,stage2,1)) $(eval $(call build-package,compiler,stage3,2))