X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fmk%2Fconfig.mk.in;h=c11aae16342287fbbf451d1d1de020e6deef7119;hb=0287b1b5e18e16f75064331d8d6de35528e9c1fb;hp=2a787ca14bd5d3689326fd948dec8e1b1138dc0c;hpb=c830ae13ccd7373b5478e10382a57d497ebc6a40;p=ghc-hetmet.git diff --git a/ghc/mk/config.mk.in b/ghc/mk/config.mk.in index 2a787ca..c11aae1 100644 --- a/ghc/mk/config.mk.in +++ b/ghc/mk/config.mk.in @@ -31,3 +31,33 @@ GhcHasReadline = @GhcHasReadline@ # GTK+ GTK_CONFIG = @GTK_CONFIG@ + +# ----------------------------------------------------------------------------- + +# We can build using the stage1 compiler by setting UseStage1=YES. +# This is useful when building up a set of .hc files for +# bootstrapping, because we need the ghc/lib/compat library and the +# contents of ghc/utils compiled with the stage1 compiler. + +ifeq "$(UseStage1)" "YES" +HC=$(GHC_STAGE1) +MKDEPENDHS=$(GHC_STAGE1) +endif + +# Some useful GHC version predicates: + +ifeq "$(UseStage1)" "YES" +ghc_ge_504 = YES +ghc_ge_601 = YES +ghc_ge_603 = YES +else +ifeq "$(BootingFromHc)" "YES" +ghc_ge_504 = YES +ghc_ge_601 = YES +ghc_ge_603 = YES +else +ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) +ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi) +ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi) +endif +endif \ No newline at end of file