[commit: ghc] ghc-7.8: Add a perf-cross build setting. (86c3da7)
git at git.haskell.org
git at git.haskell.org
Thu Jan 30 13:34:25 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/86c3da7c62ff7910e5e4fdbfdd3ac0754786071c/ghc
>---------------------------------------------------------------
commit 86c3da7c62ff7910e5e4fdbfdd3ac0754786071c
Author: Luke Iannini <lukexipd at gmail.com>
Date: Thu Jan 30 07:07:44 2014 -0600
Add a perf-cross build setting.
This is for building performance-optimized cross compilers (e.g. the iOS
target.)
Signed-off-by: Austin Seipp <austin at well-typed.com>
(cherry picked from commit 99484c965c93df5367ecb3bc29165544baf1da76)
>---------------------------------------------------------------
86c3da7c62ff7910e5e4fdbfdd3ac0754786071c
mk/build.mk.sample | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 3d94478..cb049ba 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -14,6 +14,9 @@
# As above but build GHC using the LLVM backend
#BuildFlavour = perf-llvm
+# Perf build configured for a cross-compiler
+#BuildFlavour = perf-cross
+
# Fast build with optimised libraries, no profiling (RECOMMENDED):
#BuildFlavour = quick
@@ -86,6 +89,29 @@ GhcLibWays += p
endif
+# ------- A Perf build configured for cross-compilation ----------------------
+
+ifeq "$(BuildFlavour)" "perf-cross"
+
+SRC_HC_OPTS = -O -H64m -fllvm
+GhcStage1HcOpts = -O2 -fllvm
+GhcStage2HcOpts = -O2 -fllvm
+GhcHcOpts = -Rghc-timing
+GhcLibHcOpts = -O2
+GhcLibWays += p
+INTEGER_LIBRARY = integer-simple
+Stage1Only = YES
+
+HADDOCK_DOCS = NO
+BUILD_DOCBOOK_HTML = NO
+BUILD_DOCBOOK_PS = NO
+BUILD_DOCBOOK_PDF = NO
+
+DYNAMIC_BY_DEFAULT = NO
+DYNAMIC_GHC_PROGRAMS = NO
+
+endif
+
# -------- A Fast build -------------------------------------------------------
ifeq "$(BuildFlavour)" "quickest"
More information about the ghc-commits
mailing list