diff options
author | Luke Iannini <lukexipd@gmail.com> | 2014-01-30 07:07:44 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-01-30 07:07:44 -0600 |
commit | 99484c965c93df5367ecb3bc29165544baf1da76 (patch) | |
tree | 07124a38c96da872d735bc048be7924854a7ad03 /mk/build.mk.sample | |
parent | 48326cfb1ef4b455f81fbbece7a17dab17f7c932 (diff) | |
download | haskell-99484c965c93df5367ecb3bc29165544baf1da76.tar.gz |
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@well-typed.com>
Diffstat (limited to 'mk/build.mk.sample')
-rw-r--r-- | mk/build.mk.sample | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 3d94478d44..cb049ba494 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" |