diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2014-02-13 07:29:50 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-02-17 01:46:03 -0600 |
commit | 2d5372cfdc2236a77ec49df249f3379b93224e06 (patch) | |
tree | 57a9c0c28677e96c3e913999a9a8b781c719ebeb /mk | |
parent | 2d0fa9aee78e5bfffb9a4580954825025a651be5 (diff) | |
download | haskell-2d5372cfdc2236a77ec49df249f3379b93224e06.tar.gz |
mk/config.mk.in: lower -O2 optimization down to -O1 on UNREG
Disable -O2 optimization. Otherwise amount of generated C code makes
things very slow to compile (~5 minutes on core-i7 for 'compiler/hsSyn/HsExpr.lhs')
And sometimes not compile at all (powerpc64 overflows something
on 'compiler/hsSyn/HsExpr.lhs').
Issue #8748
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index b3d6995216..6207cce867 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -422,6 +422,16 @@ BIN_DIST_TAR_BZ2 = $(BIN_DIST_NAME)-$(TARGETPLATFORM).tar.bz2 # SRC_HC_OPTS += -H32m -O +# Disable -O2 optimization. Otherwise amount of generated C code +# makes things very slow to compile (~5 minutes on core-i7 for 'compiler/hsSyn/HsExpr.lhs') +# and sometimes not compile at all (powerpc64 overflows something +# on 'compiler/hsSyn/HsExpr.lhs'). +ifeq "$(GhcUnregisterised)" "YES" +GhcStage1HcOpts= +GhcStage2HcOpts= +GhcStage3HcOpts= +endif + # ----------------------------------------------------------------------------- # Names of programs in the GHC tree |