From b05531bd2d03bf13ddc609bad1fcaf177854a761 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 13 Jan 2013 01:52:42 -0600 Subject: [PATCH] Add a 'quick-llvm' build mode to mk/build.mk. Closes Trac #7572. Signed-off-by: Austin Seipp --- mk/build.mk.sample | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 17fb9a1e56..e055b49301 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" -- GitLab