aboutsummaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
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 2b17f6729..994e01570 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -377,7 +377,12 @@ Executable git-annex
-- Fully optimize for production.
if flag(Production)
- GHC-Options: -O2
+ -- Lower memory systems can run out of memory with -O2, so
+ -- optimise slightly less.
+ if arch(arm)
+ GHC-Options: -O1 -optlo-O2
+ else
+ GHC-Options: -O2
-- Avoid linking with unused dynamic libaries.
-- (Only tested on Linux).