From f0337f2f7578424b101bc36b4b261cf211b3fe7f Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Sun, 5 May 2024 12:38:10 -0400 Subject: [PATCH] -O0 for developer flag --- text.cabal | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/text.cabal b/text.cabal index 9b10c97c..c6d1c6cc 100644 --- a/text.cabal +++ b/text.cabal @@ -224,7 +224,7 @@ library ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 if flag(developer) - ghc-options: -fno-ignore-asserts + ghc-options: -fno-ignore-asserts -O0 cpp-options: -DASSERTS if impl(ghc >= 9.2.2) ghc-options: -fcheck-prim-bounds @@ -260,6 +260,8 @@ test-suite tests type: exitcode-stdio-1.0 ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N + if flag(developer) + ghc-options: -O0 hs-source-dirs: tests main-is: Tests.hs