web: fewer build warnings in production mode, add a threaded flag for debian (#68)

This commit is contained in:
Simon Michael 2011-10-04 23:02:57 +00:00
parent 4fb325b92a
commit 329cafae93

View File

@ -30,11 +30,15 @@ source-repository head
location: http://joyful.com/repos/hledger location: http://joyful.com/repos/hledger
Flag production 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 Default: True
Flag devel Flag devel
Description: Build for use with "yesod devel". Description: Build for auto-recompiling by "yesod devel"
Default: False Default: False
executable hledger-web executable hledger-web
@ -43,9 +47,11 @@ executable hledger-web
Buildable: False Buildable: False
if flag(production) if flag(production)
cpp-options: -DPRODUCTION cpp-options: -DPRODUCTION
ghc-options: -Wall -threaded -O2 ghc-options: -O2
else else
ghc-options: -W -threaded ghc-options: -Wall
if flag(threaded)
ghc-options: -threaded
other-modules: other-modules:
Hledger.Web Hledger.Web
Hledger.Web.Foundation Hledger.Web.Foundation