diff options
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r-- | mk/config.mk.in | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index 8901137f00..b2a9569d39 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -70,15 +70,6 @@ GhcStage1HcOpts= GhcStage2HcOpts=-O2 GhcStage3HcOpts=-O2 -# Disable -O2 optimization. Otherwise amount of generated C code -# makes things very slow to compile (~5 minutes on core-i7 for 'compiler/hsSyn/HsExpr.hs') -# and sometimes not compile at all (powerpc64 overflows something -# on 'compiler/hsSyn/HsExpr.hs'). -ifeq "$(GhcUnregisterised)" "YES" -GhcStage1HcOpts= -GhcStage2HcOpts= -GhcStage3HcOpts= -endif # Note [Stage number in build variables]. # @@ -901,3 +892,20 @@ GMP_LIB_DIRS = @GMP_LIB_DIRS@ CURSES_INCLUDE_DIRS = @CURSES_INCLUDE_DIRS@ CURSES_LIB_DIRS = @CURSES_LIB_DIRS@ + +# See Note [Disable -O2 in unregisteride mode] +# Be careful: 'GhcUnregisterised' should be defined earlier in this file. +ifeq "$(GhcUnregisterised)" "YES" +GhcStage1HcOpts= +GhcStage2HcOpts= +GhcStage3HcOpts= + +GhcLibHcOpts= +endif + +# Note [Disable -O2 in unregisteride mode] +# Disable -O2 optimization in uregisterised more. Otherwise amount +# of generated C code # makes things very slow to compile (~5 minutes +# on core-i7 for 'compiler/hsSyn/HsExpr.hs') and sometimes not compile +# at all: powerpc64 overflows TOC section on 'compiler/hsSyn/HsExpr.hs' +# ia64 overflows short data section on 'compiler/main/DynFlags.hs' |