Add limit-build-mem flag for the library

This commit is contained in:
Harendra Kumar 2021-09-05 13:41:37 +05:30
parent 3e72e48d93
commit 8ca3b7b27a

View File

@ -181,6 +181,11 @@ flag opt
manual: True
default: True
flag limit-build-mem
description: Limits memory when building
manual: True
default: False
-------------------------------------------------------------------------------
-- Common stanzas
-------------------------------------------------------------------------------
@ -232,6 +237,9 @@ common compile-options
if flag(dev) || flag(debug)
ghc-options: -fno-ignore-asserts
if flag(limit-build-mem)
ghc-options: +RTS -M512M -RTS
common default-extensions
default-extensions:
BangPatterns