summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-08-14 17:38:54 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-08-14 17:39:56 -0400
commit5d5b99278d238a3f5bf177e7602cd9f2da7f1e76 (patch)
tree67e7d555f065377de9af6d487766c5c6f6d8012f /git-annex.cabal
parentb6b307eb0def1300695a7c8cf082b2ac52473566 (diff)
enable parallel build for fast mode and explicitly disable for production
Currently, ghc has issues getting reproducible builds with parallel building. https://ghc.haskell.org/trac/ghc/ticket/4012
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 5431d6ddc..8903839bb 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -152,8 +152,13 @@ Executable git-annex
else
Build-Depends: cryptohash (>= 0.11.0)
+ -- Fully optimize for production.
+ -- Parallel builds only when not building for production,
+ -- because ghc is known to not yield reproducible builds this way.
if flag(Production)
- GHC-Options: -O2
+ GHC-Options: -O2 -j1
+ else
+ GHC-Options: -j
if (os(windows))
Build-Depends: Win32, Win32-extras, unix-compat (>= 0.4.1.3), setenv