[commit: ghc] master: Add a 'quick-llvm' build mode to mk/build.mk. (b05531b)

Austin Seipp mad.one at gmail.com
Thu Jan 17 06:48:55 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/b05531bd2d03bf13ddc609bad1fcaf177854a761

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

commit b05531bd2d03bf13ddc609bad1fcaf177854a761
Author: Austin Seipp <mad.one at gmail.com>
Date:   Sun Jan 13 01:52:42 2013 -0600

    Add a 'quick-llvm' build mode to mk/build.mk.
    
    Closes Trac #7572.
    
    Signed-off-by: Austin Seipp <mad.one at gmail.com>

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

 mk/build.mk.sample |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 17fb9a1..e055b49 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -16,6 +16,9 @@
 # Fast build with optimised libraries, no profiling (RECOMMENDED):
 #BuildFlavour = quick
 
+# Fast build with optimised libraries, no profiling, with LLVM:
+#BuildFlavour = quick-llvm
+
 # Even faster build.  NOT RECOMMENDED: the libraries will be
 # completely unoptimised, so any code built with this compiler
 # (including stage2) will run very slowly:
@@ -104,6 +107,22 @@ BUILD_DOCBOOK_PDF  = NO
 
 endif
 
+# -------- A Fast build with optimised libs using LLVM -----------------------
+
+ifeq "$(BuildFlavour)" "quick-llvm"
+
+SRC_HC_OPTS        = -H64m -O0 -fllvm
+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
+
+endif
+
 # -------- Profile the stage2 compiler ---------------------------------------
 
 ifeq "$(BuildFlavour)" "prof"





More information about the ghc-commits mailing list