summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-03-16 12:56:28 -0400
committerJoey Hess <joeyh@joeyh.name>2018-03-16 12:56:28 -0400
commitbc1d56bdfd0f513e96c35059d9c32a1bba1539fd (patch)
tree1e793eb4c9b775869946ede371c462aefdb88a4c /git-annex.cabal
parent4af5507889941bc7664c74daeb1f959a090873e7 (diff)
cabal sdist refuses to build with -O1
Sigh, disabled the full fix. What we have now will work once the ghc bug is fixed, but not currently.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index e9724f6d59..9e273d98b1 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -379,8 +379,11 @@ Executable git-annex
if flag(Production)
-- Lower memory systems can run out of memory with -O2, so
-- optimise slightly less.
+ -- This needs -O1 before the -optlo, due to this bug:
+ -- https://ghc.haskell.org/trac/ghc/ticket/14821
+ -- But unfortunately, hackage currently refuses to accept -O1
if arch(arm)
- GHC-Options: -O1 -optlo-O2
+ GHC-Options: -optlo-O2
else
GHC-Options: -O2