From: Simon Marlow Date: Thu, 14 May 2009 09:36:36 +0000 (+0000) Subject: don't rebuild the whole of stage 1 just because the date has changed X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=2a4517655a45e798cc4716be9b7d0abc3c900887 don't rebuild the whole of stage 1 just because the date has changed --- diff --git a/compiler/ghc.mk b/compiler/ghc.mk index ce5e545..22459b5 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -404,6 +404,16 @@ compiler/stage3/package-data.mk : compiler/ghc.mk compiler_PACKAGE = ghc +# The version of the GHC package changes every day, since the +# patchlevel is the current date. We don't want to force +# recompilation of the entire compiler when this happens, so for stage +# 1 we omit the patchlevel from the version number. For stage 2 we +# have to include the patchlevel since this is the package we install, +# however. +define compiler_PACKAGE_MAGIC +compiler_stage1_VERSION = $(subst .$(ProjectPatchLevel),,$(ProjectVersion)) +endef + # haddocking only happens for stage2 compiler_stage1_DO_HADDOCK = NO compiler_stage3_DO_HADDOCK = NO