From 6b5370f145ad2f346ec803c0ddaa3f47ab86ed76 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 10 Jan 2022 09:20:28 +0100 Subject: [PATCH] ci: Add -with-rtsopts=-KxK option to prevent introducing space leaks Resolves #387 --- postgrest.cabal | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/postgrest.cabal b/postgrest.cabal index 6138fc23d..bf82f8fc6 100644 --- a/postgrest.cabal +++ b/postgrest.cabal @@ -152,6 +152,8 @@ executable postgrest if flag(dev) ghc-options: -O0 -fwrite-ide-info + -- https://github.com/PostgREST/postgrest/issues/387 + -with-rtsopts=-K1K if flag(hpc) ghc-options: -fhpc -hpcdir .hpc else @@ -233,6 +235,8 @@ test-suite spec -fno-spec-constr -optP-Wno-nonportable-include-path -fno-warn-missing-signatures -fwrite-ide-info + -- https://github.com/PostgREST/postgrest/issues/387 + -with-rtsopts=-K33K test-suite querycost type: exitcode-stdio-1.0 @@ -268,6 +272,8 @@ test-suite querycost ghc-options: -O0 -Werror -Wall -fwarn-identities -fno-spec-constr -optP-Wno-nonportable-include-path -fwrite-ide-info + -- https://github.com/PostgREST/postgrest/issues/387 + -with-rtsopts=-K1K test-suite doctests type: exitcode-stdio-1.0