From c2ecce2602fc588d49f1a16baf0f05f5e871b97d Mon Sep 17 00:00:00 2001 From: Debian Haskell Group Date: Sun, 8 Apr 2018 21:24:00 +0100 Subject: [PATCH] lower-optimization-for-unreg Gbp-Pq: Name lower-optimization-for-unreg.patch --- mk/config.mk.in | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/mk/config.mk.in b/mk/config.mk.in index 4e61eea8..b49d5a4d 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -70,16 +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]. # # There are (unfortunately) two different naming schemes for build variables @@ -326,6 +316,17 @@ GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO) GhcLibHcOpts=-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= +GhcLibHcOpts= +endif + # Strip local symbols from libraries? This can make the libraries smaller, # but makes debugging somewhat more difficult. Doesn't work with all ld's. # -- 2.30.2