lower-optimization-for-unreg
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Mon, 25 Jun 2018 09:24:52 +0000 (10:24 +0100)
committerIlias Tsitsimpis <iliastsi@debian.org>
Mon, 25 Jun 2018 09:24:52 +0000 (10:24 +0100)
Gbp-Pq: Name lower-optimization-for-unreg.patch

mk/config.mk.in

index 4e61eea8213bd8b54ce6bfa014ebd431e496a33c..b49d5a4d495077c4cc8396d5cd8fb098886ca59a 100644 (file)
@@ -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.
 #