X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=b33117a61b2bf2aaa1abb45241a4bcb37b3b5bbf;hb=a4bef988fe1fcc2f6e59d9f8ccb54bcbc893958e;hp=c237df7a5c30143ad0d017044fcd6515bc975ad5;hpb=3a60f713e57c22c7357bec66bfcee6e8ddffee9a;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index c237df7..b33117a 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -395,7 +395,7 @@ compiler_stage3_CONFIGURE_OPTS := $(compiler_stage2_CONFIGURE_OPTS) compiler_stage1_CONFIGURE_OPTS += --ghc-option=-DSTAGE=1 compiler_stage2_CONFIGURE_OPTS += --ghc-option=-DSTAGE=2 compiler_stage3_CONFIGURE_OPTS += --ghc-option=-DSTAGE=3 -compiler_stage2_HADDOCK_OPTS += --haddock-option=--optghc=-DSTAGE=2 +compiler_stage2_HADDOCK_OPTS += --optghc=-DSTAGE=2 compiler_stage1_CONFIGURE_OPTS += --ghc-options='$(GhcStage1HcOpts)' compiler_stage2_CONFIGURE_OPTS += --ghc-options='$(GhcStage2HcOpts)' @@ -423,9 +423,11 @@ compiler_PACKAGE = ghc # below. # The ProjectPatchLevel > 20000000 iff it's a date. If it's e.g. 6.12.1 # then we don't want to remove it +ifneq "$(CLEANING)" "YES" ifeq "$(shell [ $(ProjectPatchLevel) -gt 20000000 ] && echo YES)" "YES" compiler_stage1_VERSION_MUNGED = YES endif +endif ifeq "$(compiler_stage1_VERSION_MUNGED)" "YES" define compiler_PACKAGE_MAGIC