@@ -10,6 +10,11 @@ flag fusion-plugin
10 manual: True
10 manual: True
11 default: False
11 default: False
14+ description: Limits memory when building the executables
14 description: Development build
19 description: Development build
15 manual: True
20 manual: True
@@ -53,6 +58,7 @@ common compile-options
53 -Wredundant-constraints
58 -Wredundant-constraints
54 -Wnoncanonical-monad-instances
59 -Wnoncanonical-monad-instances
55 -Rghc-timing
60 -Rghc-timing
57 if flag(has-llvm)
63 if flag(has-llvm)
58 ghc-options: -fllvm
64 ghc-options: -fllvm
@@ -61,8 +67,8 @@ common compile-options
61 ghc-options: -Wmissed-specialisations
67 ghc-options: -Wmissed-specialisations
62 -Wall-missed-specialisations
68 -Wall-missed-specialisations
64− ghc-options: -fno-ignore-asserts
70+ if flag(limit-build-mem)
65− +RTS -M512M -RTS
71+ ghc-options: +RTS -M512M -RTS
67common default-extensions
73common default-extensions
68 default-extensions:
74 default-extensions:
@@ -146,10 +152,12 @@ common lib-options
148 import: lib-options, test-dependencies
154 import: lib-options, test-dependencies
149− ghc-options: +RTS -M1500M -RTS
150 hs-source-dirs: lib
155 hs-source-dirs: lib
151 exposed-modules: Streamly.Test.Common
156 exposed-modules: Streamly.Test.Common
152 , Streamly.Test.Prelude.Common
157 , Streamly.Test.Prelude.Common
158+ if flag(limit-build-mem)
159+ ghc-options: +RTS -M1500M -RTS
154-------------------------------------------------------------------------------
162-------------------------------------------------------------------------------
155-- Test suite options
163-- Test suite options
@@ -222,13 +230,15 @@ test-suite Data.Parser
222 import: test-options
230 import: test-options
223 type: exitcode-stdio-1.0
231 type: exitcode-stdio-1.0
224 main-is: Streamly/Test/Data/Parser.hs
232 main-is: Streamly/Test/Data/Parser.hs
233+ if flag(limit-build-mem)
225− ghc-options: +RTS -M1000M -RTS
234+ ghc-options: +RTS -M1000M -RTS
227test-suite Data.Parser.ParserD
236test-suite Data.Parser.ParserD
228 import: test-options
237 import: test-options
229 type: exitcode-stdio-1.0
238 type: exitcode-stdio-1.0
230 main-is: Streamly/Test/Data/Parser/ParserD.hs
239 main-is: Streamly/Test/Data/Parser/ParserD.hs
240+ if flag(limit-build-mem)
231− ghc-options: +RTS -M1000M -RTS
241+ ghc-options: +RTS -M1000M -RTS
233test-suite Data.SmallArray
243test-suite Data.SmallArray
234 import: test-options
244 import: test-options
@@ -287,7 +297,8 @@ test-suite Prelude.Concurrent
287 type: exitcode-stdio-1.0
297 type: exitcode-stdio-1.0
288 main-is: Streamly/Test/Prelude/Concurrent.hs
298 main-is: Streamly/Test/Prelude/Concurrent.hs
289 ghc-options: -main-is Streamly.Test.Prelude.Concurrent.main
299 ghc-options: -main-is Streamly.Test.Prelude.Concurrent.main
300+ if flag(limit-build-mem)
290− +RTS -M2000M -RTS
301+ ghc-options: +RTS -M2000M -RTS
292test-suite Prelude.Fold
303test-suite Prelude.Fold
293 import: test-options
304 import: test-options
@@ -316,7 +327,9 @@ test-suite Prelude.Serial
316 type: exitcode-stdio-1.0
327 type: exitcode-stdio-1.0
317 main-is: Streamly/Test/Prelude/Serial.hs
328 main-is: Streamly/Test/Prelude/Serial.hs
318 ghc-options: -main-is Streamly.Test.Prelude.Serial.main
329 ghc-options: -main-is Streamly.Test.Prelude.Serial.main
330+ if flag(limit-build-mem)
319− +RTS -M1500M -RTS
331+ ghc-options: +RTS -M1500M -RTS
321test-suite Prelude.WAsync
334test-suite Prelude.WAsync
322 import: test-options
335 import: test-options