X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fbuild.mk.sample;h=8541e51c48ffa686c6c2f1d77f5b6bdd8fc72129;hb=9f8e195e69e54c733eb93b2e2e39c2ebe818ce62;hp=3f55836d0da4770935971e29418772c414433853;hpb=1dc6b07eb93f4ff2f0e9f89dbdfa0ec4e051291f;p=ghc-hetmet.git diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 3f55836..8541e51 100644 --- a/mk/build.mk.sample +++ b/mk/build.mk.sample @@ -5,14 +5,10 @@ # overall build type, and then tweak the options in the relevant section # below. -BuildFlavour = devel -#BuildFlavour = perf - -# -------- Misc. settings ----------------------------------------------------- +# Uncomment one of these to select a build profile below: -# Not necessary to set this, but useful if you have other projects checked-out -# in your source tree. -ProjectsToBuild = glafp-utils ghc libraries hslibs +#BuildFlavour = devel +#BuildFlavour = perf # Which warnings we like to use MyWarningOpts = -W -fno-warn-unused-matches -fwarn-unused-imports @@ -23,15 +19,15 @@ ifeq "$(BuildFlavour)" "devel" GhcCompilerWays = -FptoolsHcOpts = -H32m $(MyWarningOpts) -GhcHcOpts = -Rghc-timing -DDEBUG -GhcLibHcOpts = -dcore-lint -O -H32m $(MyWarningOpts) -keep-hc-files -GhcLibWays = +SRC_HC_OPTS = -H32m -O -fasm $(MyWarningOpts) +GhcLibHcOpts = -O -dcore-lint $(MyWarningOpts) +GhcLibWays = + +# If you're working on the stage1 compiler, build stage1 with debugging: +GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG -# Debugging RTS -GhcRtsHcOpts = -optc-DDEBUG -GhcRtsCcOpts = -g -SRC_HC_OPTS += -lbfd -liberty +# alternatively, to work on the stage 2 compiler: +# GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG # profiled RTS #GhcRtsCcOpts = -pg -g @@ -54,9 +50,9 @@ endif ifeq "$(BuildFlavour)" "perf" -FptoolsHcOpts = -H32m -O $(MyWarningOpts) +SRC_HC_OPTS = -H32m -O $(MyWarningOpts) GhcHcOpts = -Rghc-timing -GhcLibHcOpts = -H32m -O $(MyWarningOpts) +GhcLibHcOpts = GhcLibWays = p