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.
This commit is contained in:
parent
4af5507889
commit
bc1d56bdfd
2 changed files with 5 additions and 1 deletions
|
@ -45,6 +45,7 @@ git-annex (6.20180316) upstream; urgency=medium
|
||||||
* Include amount of data transferred in progress display.
|
* Include amount of data transferred in progress display.
|
||||||
* Dial back optimisation when building on arm, which prevents
|
* Dial back optimisation when building on arm, which prevents
|
||||||
ghc and llc from running out of memory when optimising some files.
|
ghc and llc from running out of memory when optimising some files.
|
||||||
|
(Unfortunately this fix is incomplete due to a ghc bug.)
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Fri, 16 Mar 2018 12:10:40 -0400
|
-- Joey Hess <id@joeyh.name> Fri, 16 Mar 2018 12:10:40 -0400
|
||||||
|
|
||||||
|
|
|
@ -379,8 +379,11 @@ Executable git-annex
|
||||||
if flag(Production)
|
if flag(Production)
|
||||||
-- Lower memory systems can run out of memory with -O2, so
|
-- Lower memory systems can run out of memory with -O2, so
|
||||||
-- optimise slightly less.
|
-- 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)
|
if arch(arm)
|
||||||
GHC-Options: -O1 -optlo-O2
|
GHC-Options: -optlo-O2
|
||||||
else
|
else
|
||||||
GHC-Options: -O2
|
GHC-Options: -O2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue