diff options
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | Test.hs | 2 | ||||
-rw-r--r-- | git-annex.cabal | 7 |
3 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,8 @@ git-annex (6.20180228) UNRELEASED; urgency=medium * Support exporttree=yes for rsync special remotes. + * Dial back optimisation when building on arm, which prevents + ghc and llc from running out of memory when optimising some files. -- Joey Hess <id@joeyh.name> Wed, 28 Feb 2018 11:53:03 -0400 @@ -6,8 +6,6 @@ -} {-# LANGUAGE CPP #-} -{- Avoid optimising this file much, since it's large and does not need it._-} -{-# OPTIONS_GHC -O1 -optlo-O2 #-} module Test where 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). |