Commit 5cbb6a9c authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis

aeson: Pass ggc-min-expand=10 on mips and mipsel

parent caef3515
haskell-aeson ( unstable; urgency=medium
* Pass ggc-min-expand=10 on mips and mipsel
-- Ilias Tsitsimpis <> Tue, 23 Oct 2018 18:32:04 +0300
haskell-aeson ( unstable; urgency=medium
* Remove build dependency on libghc-mtl-dev (provided by ghc-8.4.3)
......@@ -4,5 +4,20 @@ DEB_SETUP_GHC_CONFIGURE_ARGS := $(shell test -e /usr/bin/ghci || echo --flags=-t
DEB_SETUP_GHC_CONFIGURE_ARGS += $(shell test -e /usr/lib/ghc/rts/libHSrts_thr.a || echo --flags=-threaded)
# haskell-aeson needs a lot of memory during compilation.
# Unfortunately, this amount of memory is not available on all platforms,
# and error: "virtual memory exhausted: Cannot allocate memory." could appear.
# In this case possible solution could be using ggc-min-expand.
# This parameter specifies the minimum percentage by which the
# garbage collector’s heap should be allowed to expand between collections.
# Tuning this may improve compilation speed; it has no effect on code generation.
# -- Dejan Latinovic <>
ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc--param -optcggc-min-expand=10"
include /usr/share/cdbs/1/rules/
include /usr/share/cdbs/1/class/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment