1 # -----------------------------------------------------------------------------
4 # Uncomment one of the following BuildFlavour settings to get the desired
5 # overall build type, and then tweak the options in the relevant section
8 # Uncomment one of these to select a build profile below:
13 # Which warnings we like to use
14 MyWarningOpts = -W -fno-warn-unused-matches -fwarn-unused-imports
16 # -------- 1. A Development build --------------------------------------------
18 ifeq "$(BuildFlavour)" "devel"
22 SRC_HC_OPTS = -H32m -O -fasm $(MyWarningOpts)
23 GhcLibHcOpts = -O -dcore-lint $(MyWarningOpts)
26 # If you're working on the stage1 compiler, build stage1 with debugging:
27 GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG
29 # alternatively, to work on the stage 2 compiler:
30 # GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG
33 #GhcRtsCcOpts = -pg -g
35 # Optimised/profiled RTS
36 #GhcRtsCcOpts = -O2 -pg
38 #GhcRtsWithFrontPanel = YES
39 #SRC_HC_OPTS += `gtk-config --libs`
44 SRC_RUNTEST_OPTS += +RTS -H10m -RTS
49 # -------- 1. A Performance/Distribution build--------------------------------
51 ifeq "$(BuildFlavour)" "perf"
53 SRC_HC_OPTS = -H32m -O $(MyWarningOpts)
54 GhcHcOpts = -Rghc-timing
59 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro