From 329cafae9374694b98efaf0e7cdc9a9e81867c7c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 4 Oct 2011 23:02:57 +0000 Subject: [PATCH] web: fewer build warnings in production mode, add a threaded flag for debian (#68) --- hledger-web/hledger-web.cabal | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/hledger-web/hledger-web.cabal b/hledger-web/hledger-web.cabal index 9bfec330b..064f350c6 100644 --- a/hledger-web/hledger-web.cabal +++ b/hledger-web/hledger-web.cabal @@ -30,11 +30,15 @@ source-repository head location: http://joyful.com/repos/hledger Flag production - Description: Build in production mode, with web files embedded. Otherwise, they will be loaded from ./static/. + Description: Build with production-mode tweaks, including full optimisation and embedded web files (not loaded from ./static/) + Default: True + +flag threaded + Description: Build with support for multithreaded execution Default: True Flag devel - Description: Build for use with "yesod devel". + Description: Build for auto-recompiling by "yesod devel" Default: False executable hledger-web @@ -43,9 +47,11 @@ executable hledger-web Buildable: False if flag(production) cpp-options: -DPRODUCTION - ghc-options: -Wall -threaded -O2 + ghc-options: -O2 else - ghc-options: -W -threaded + ghc-options: -Wall + if flag(threaded) + ghc-options: -threaded other-modules: Hledger.Web Hledger.Web.Foundation