diff options
author | Austin Seipp <austin@well-typed.com> | 2013-10-25 03:42:42 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2013-10-25 09:14:30 -0500 |
commit | 2fc1ac2421522ab5dbdcd9cd0179814bb901eab1 (patch) | |
tree | 974ea8581cfce92309817406db385b1fc4b1f1b7 /mk/build.mk.sample | |
parent | f57ba1d74ca434f6025347c70769c9f1889abcc5 (diff) | |
download | haskell-2fc1ac2421522ab5dbdcd9cd0179814bb901eab1.tar.gz |
Add build.mk.sample entry for Cross Compilation
This is suitable e.g. for iOS.
Authored-by: Authored-by: Luke Iannini <lukexi@me.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'mk/build.mk.sample')
-rw-r--r-- | mk/build.mk.sample | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 1b05ddee6a..94d09e147d 100644 --- a/mk/build.mk.sample +++ b/mk/build.mk.sample @@ -20,6 +20,9 @@ # Fast build with optimised libraries, no profiling, with LLVM: #BuildFlavour = quick-llvm +# Fast build configured for a cross compiler +#BuildFlavour = quick-cross + # Even faster build. NOT RECOMMENDED: the libraries will be # completely unoptimised, so any code built with this compiler # (including stage2) will run very slowly: @@ -137,6 +140,27 @@ DYNAMIC_GHC_PROGRAMS = NO endif +# -------- A Fast build configured for cross-compilation ---------------------- + +ifeq "$(BuildFlavour)" "quick-cross" + +SRC_HC_OPTS = -H64m -O0 +GhcStage1HcOpts = -O -fllvm +GhcStage2HcOpts = -O0 -fllvm +GhcLibHcOpts = -O -fllvm +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_DOCBOOK_HTML = NO +BUILD_DOCBOOK_PS = NO +BUILD_DOCBOOK_PDF = NO +INTEGER_LIBRARY = integer-simple +Stage1Only = YES + +DYNAMIC_BY_DEFAULT = NO +DYNAMIC_GHC_PROGRAMS = NO + +endif + # -------- Profile the stage2 compiler ---------------------------------------- ifeq "$(BuildFlavour)" "prof" |