mirror of
https://github.com/composewell/streamly.git
synced 2024-09-11 11:37:22 +03:00
Add limit-build-mem flag for the library
This commit is contained in:
parent
3e72e48d93
commit
8ca3b7b27a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user