X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=8228df8bbced0db460954fcb97667fda18f79167;hb=02670da5cd2c4a2af282cb6b1b4af6d4eca7ed4c;hp=97214677d7e5b5a28517fbd705bad177df6a0f5c;hpb=2b7c9eee6ede798b77cea465f4207d881a4eaf73;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 9721467..8228df8 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -139,11 +139,15 @@ BootingFromHc = @BootingFromHc@ # rather than registerised code, i.e., disable the mangler? BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@ -# build the libs first if we're bootstrapping from .hc files +# Build Order: we build Happy, Haddock and Alex before GHC if they are +# in this source tree, just in case our GHC build depends on these +# local builds rather than installed versions of the tools. +# +# Build the libs first if we're bootstrapping from .hc files. ifeq "$(BootingFromHc)" "YES" -AllProjects = glafp-utils libraries hslibs ghc greencard happy hdirect hood nofib haddock alex +AllProjects = glafp-utils happy alex haddock libraries hslibs ghc greencard hdirect hood nofib else -AllProjects = glafp-utils ghc libraries hslibs greencard happy hdirect hood nofib haddock alex +AllProjects = glafp-utils happy alex haddock ghc libraries hslibs greencard hdirect hood nofib endif # @@ -221,11 +225,9 @@ GhcStage3HcOpts= # (way 'u') to get unregisterised code, but the default way will be # registerised. # -# NOTE: this is not the same as building the compiler itself -# unregisterised. That's done by either (a) bootstrapping with a -# compiler that was built with GhcUnregisterised=YES, or (b) -# bootstrapping with a compiler that has way 'u' libraries, and the -# flag '-unreg' is added to GhcHcOpts above. +# NOTE: the stage1 compiler will be a registerised binary (assuming +# the compiler you build with is generating registerised binaries), but +# the stage2 compiler will be an unregisterised binary. # GhcUnregisterised=NO