X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fbuild.mk.sample;h=911f5025ec6f52e7f47030695653281a02085083;hb=c4ec8f2a77894af1c6160c4e8ad5625ab62f0bea;hp=8541e51c48ffa686c6c2f1d77f5b6bdd8fc72129;hpb=dbeedb1e510b750d87c542ec1755bf41b41ee3e9;p=ghc-hetmet.git diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 8541e51..911f502 100644 --- a/mk/build.mk.sample +++ b/mk/build.mk.sample @@ -7,54 +7,103 @@ # Uncomment one of these to select a build profile below: -#BuildFlavour = devel +# Full build with max optimisation (slow build) #BuildFlavour = perf +# Fastest build (libs unoptimised): +#BuildFlavour = quickest + +# Fast build with optimised libraries: +#BuildFlavour = quick + +# A development build, working on the stage 1 compiler: +#BuildFlavour = devel1 + +# A development build, working on the stage 2 compiler: +#BuildFlavour = devel2 + # Which warnings we like to use MyWarningOpts = -W -fno-warn-unused-matches -fwarn-unused-imports -# -------- 1. A Development build -------------------------------------------- +# -------- 1. A Performance/Distribution build-------------------------------- + +ifeq "$(BuildFlavour)" "perf" -ifeq "$(BuildFlavour)" "devel" +# perf matches the default settings, repeated here for comparison: -GhcCompilerWays = +SRC_HC_OPTS = -O -H64m +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O2 -fasm +GhcHcOpts = -Rghc-timing +GhcLibHcOpts = -O2 -XGenerics +GhcLibWays = p -SRC_HC_OPTS = -H32m -O -fasm $(MyWarningOpts) -GhcLibHcOpts = -O -dcore-lint $(MyWarningOpts) +endif + +# -------- A Fast build ------------------------------------------------------ + +ifeq "$(BuildFlavour)" "quickest" + +SRC_HC_OPTS = -H64m -O0 -fasm +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O0 -fasm +GhcLibHcOpts = -O0 -fasm GhcLibWays = +SplitObjs = NO -# If you're working on the stage1 compiler, build stage1 with debugging: -GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG +endif -# alternatively, to work on the stage 2 compiler: -# GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG +# -------- A Fast build with optimised libs ---------------------------------- -# profiled RTS -#GhcRtsCcOpts = -pg -g +ifeq "$(BuildFlavour)" "quick" -# Optimised/profiled RTS -#GhcRtsCcOpts = -O2 -pg +SRC_HC_OPTS = -H64m -O0 -fasm +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O0 -fasm +GhcLibHcOpts = -O -fasm +GhcLibWays = +SplitObjs = NO -#GhcRtsWithFrontPanel = YES -#SRC_HC_OPTS += `gtk-config --libs` +endif + +# -------- A Development build (stage 1) ------------------------------------- + +ifeq "$(BuildFlavour)" "devel1" +SRC_HC_OPTS = -H64m -O -fasm $(MyWarningOpts) +GhcLibHcOpts = -O -dcore-lint $(MyWarningOpts) +GhcLibWays = +GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG +GhcStage2HcOpts = -Rghc-timing -O -fasm SplitObjs = NO -NoFibWays = -SRC_RUNTEST_OPTS += +RTS -H10m -RTS -STRIP=: +endif + +# -------- A Development build (stage 2) ------------------------------------- + +ifeq "$(BuildFlavour)" "devel2" + +SRC_HC_OPTS = -H64m -O -fasm $(MyWarningOpts) +GhcLibHcOpts = -O -dcore-lint $(MyWarningOpts) +GhcLibWays = +GhcStage1HcOpts = -Rghc-timing -O -fasm +GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG +SplitObjs = NO endif -# -------- 1. A Performance/Distribution build-------------------------------- +# ----------------------------------------------------------------------------- +# Other settings that might be useful -ifeq "$(BuildFlavour)" "perf" +# profiled RTS +#GhcRtsCcOpts = -pg -g -SRC_HC_OPTS = -H32m -O $(MyWarningOpts) -GhcHcOpts = -Rghc-timing -GhcLibHcOpts = +# Optimised/profiled RTS +#GhcRtsCcOpts = -O2 -pg -GhcLibWays = p +#GhcRtsWithFrontPanel = YES +#SRC_HC_OPTS += `gtk-config --libs` -#GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro -endif +# NoFib settings +NoFibWays = +STRIP=: