[commit: ghc] master: Add build.mk.sample entry for Cross Compilation (2fc1ac2)

git at git.haskell.org git at git.haskell.org
Fri Oct 25 14:22:35 UTC 2013


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2fc1ac2421522ab5dbdcd9cd0179814bb901eab1/ghc

>---------------------------------------------------------------

commit 2fc1ac2421522ab5dbdcd9cd0179814bb901eab1
Author: Austin Seipp <austin at well-typed.com>
Date:   Fri Oct 25 03:42:42 2013 -0500

    Add build.mk.sample entry for Cross Compilation
    
    This is suitable e.g. for iOS.
    
    Authored-by: Authored-by: Luke Iannini <lukexi at me.com>
    Signed-off-by: Austin Seipp <austin at well-typed.com>


>---------------------------------------------------------------

2fc1ac2421522ab5dbdcd9cd0179814bb901eab1
 mk/build.mk.sample |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 1b05dde..94d09e1 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"



More information about the ghc-commits mailing list