mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-09-11 08:25:40 +03:00
Add use-large-mem flag
To include tests that require large amounts of RAM
This commit is contained in:
parent
9d7bd5293a
commit
ea50a6cb50
@ -1754,7 +1754,9 @@ makeCommonOps t =
|
||||
, ("maxBuffer 0", t . maxBuffer 0)
|
||||
, ("maxThreads 0", t . maxThreads 0)
|
||||
, ("maxThreads 1", t . maxThreads 1)
|
||||
#ifdef USE_LARGE_MEMORY
|
||||
, ("maxThreads -1", t . maxThreads (-1))
|
||||
#endif
|
||||
#endif
|
||||
]
|
||||
|
||||
|
@ -15,6 +15,11 @@ flag limit-build-mem
|
||||
manual: True
|
||||
default: False
|
||||
|
||||
flag use-large-mem
|
||||
description: Include tests that require large amount of memory
|
||||
manual: True
|
||||
default: False
|
||||
|
||||
flag dev
|
||||
description: Development build
|
||||
manual: True
|
||||
@ -70,6 +75,9 @@ common compile-options
|
||||
if flag(limit-build-mem)
|
||||
ghc-options: +RTS -M512M -RTS
|
||||
|
||||
if flag(use-large-mem)
|
||||
cpp-options: -DUSE_LARGE_MEMORY
|
||||
|
||||
common default-extensions
|
||||
default-extensions:
|
||||
BangPatterns
|
||||
|
Loading…
Reference in New Issue
Block a user