[commit: ghc] master: By default, be lax about dependencies on GHC (12646a9)
Ian Lynagh
igloo at earth.li
Sun Aug 28 14:19:34 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/12646a9c0f748da67098d9da3f357a756fd7df7c
>---------------------------------------------------------------
commit 12646a9c0f748da67098d9da3f357a756fd7df7c
Author: Ian Lynagh <igloo at earth.li>
Date: Sun Aug 28 12:23:04 2011 +0100
By default, be lax about dependencies on GHC
There are a number of things which technically depend on GHC (e.g. if
ghc changes then Haskell files may be compiled differently, or Cabal
packages may be configured differently). However, in practice, having
a real dependency on GHC is just a pain: We normally don't want to
spend time recompiling other things while we're working on the
compiler, and even if we did, GHC will normally decide compilation
isn't needed anyway. So by default we use order-only dependencies on
GHC, i.e. GHC must exist, but if it's newer than other targets then
rebuilding is not necessary.
ghc.mk | 19 +++++++++++++++++++
mk/config.mk.in | 11 +++++++++++
rules/build-package-data.mk | 2 +-
rules/c-suffix-rules.mk | 12 ++++++------
rules/cmm-suffix-rules.mk | 12 ++++++------
rules/hs-suffix-rules-srcdir.mk | 12 ++++++------
rules/hs-suffix-rules.mk | 8 ++++----
7 files changed, 53 insertions(+), 23 deletions(-)
Diff suppressed because of size. To see it, use:
git show 12646a9c0f748da67098d9da3f357a756fd7df7c
More information about the Cvs-ghc
mailing list