summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-27 01:41:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-27 01:41:01 -0400
commitc7812b32f27642e15595b40a6e358e74d6aa4a4b (patch)
treebd59a9cefd52e0f09c6b7d6aef9a8ebcca732b7c
parent73b460a66e907c477f0f27a3d970d93e4cae452b (diff)
add Production flag
-rw-r--r--git-annex.cabal12
1 files changed, 9 insertions, 3 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index f490a02d9..416dbfa64 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -5,7 +5,7 @@ License: GPL
Maintainer: Joey Hess <joey@kitenet.net>
Author: Joey Hess
Stability: Stable
-Copyright: 2010-2012 Joey Hess
+Copyright: 2010-2013 Joey Hess
License-File: COPYRIGHT
Homepage: http://git-annex.branchable.com/
Build-type: Custom
@@ -52,6 +52,9 @@ Flag XMPP
Flag DNS
Description: Enable the haskell DNS library for DNS lookup
+Flag Production
+ Description: Enable production build
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
@@ -65,7 +68,11 @@ Executable git-annex
Other-Modules: Utility.Touch Utility.Mounts
Include-Dirs: Utility
C-Sources: Utility/libdiskfree.c Utility/libmounts.c
- GHC-Options: -threaded
+ CC-Options: -Wall
+ GHC-Options: -threaded -Wall
+
+ if flag(Production)
+ GHC-Options: -O2
if flag(S3)
Build-Depends: hS3
@@ -130,7 +137,6 @@ Test-Suite test
Other-Modules: Utility.Touch
Include-Dirs: Utility
C-Sources: Utility/libdiskfree.c
- Extensions: CPP
GHC-Options: -threaded
source-repository head