Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # haskell-gluraw needs a lot of memory during compilation.
4 # Unfortunately, this amount of memory is not available on all platforms,
5 # and error: "virtual memory exhausted: Cannot allocate memory." could appear.
6 #
7 # In this case possible solution could be using ggc-min-expand.
8 # This parameter specifies the minimum percentage by which the
9 # garbage collector’s heap should be allowed to expand between collections.
10 # Tuning this may improve compilation speed; it has no effect on code generation.
11 #
12 # http://hostingfu.com/article/compiling-with-gcc-on-low-memory-vps
13 # -- Dejan Latinovic <[email protected]>
14 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
15 ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
16 DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc--param -optcggc-min-expand=10"
17 endif
18
19 %:
20 dh $@