Skip to content
Snippets Groups Projects
Commit 86c3da7c authored by Luke Iannini's avatar Luke Iannini Committed by Austin Seipp
Browse files

Add a perf-cross build setting.


This is for building performance-optimized cross compilers (e.g. the iOS
target.)

Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>

(cherry picked from commit 99484c96)
parent 967d234a
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment