Skip to content

Commit

Permalink
fix:web: -threaded is needed in test suite now also
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Dec 20, 2024
1 parent c23087f commit efa1010
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions hledger-web/hledger-web.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ library
, yesod-static >=1.4 && <1.7
, yesod-test
default-language: Haskell2010
if flag(threaded)
ghc-options: -threaded -with-rtsopts=-T
if (flag(dev)) || (flag(library-only))
cpp-options: -DDEVELOPMENT
if flag(dev)
Expand All @@ -228,6 +230,8 @@ executable hledger-web
, base-compat >=0.14.0
, hledger-web
default-language: Haskell2010
if flag(threaded)
ghc-options: -threaded -with-rtsopts=-T
if (flag(dev)) || (flag(library-only))
cpp-options: -DDEVELOPMENT
if flag(dev)
Expand All @@ -236,8 +240,6 @@ executable hledger-web
cpp-options: -DDEBUG
if flag(library-only)
buildable: False
if flag(threaded)
ghc-options: -threaded -with-rtsopts=-T

test-suite test
type: exitcode-stdio-1.0
Expand All @@ -251,6 +253,8 @@ test-suite test
, base-compat >=0.14.0
, hledger-web
default-language: Haskell2010
if flag(threaded)
ghc-options: -threaded -with-rtsopts=-T
if (flag(dev)) || (flag(library-only))
cpp-options: -DDEVELOPMENT
if flag(dev)
Expand Down
4 changes: 2 additions & 2 deletions hledger-web/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ ghc-options:
- -Wincomplete-uni-patterns

when:
- condition: flag(threaded)
ghc-options: -threaded -with-rtsopts=-T
- condition: (flag(dev)) || (flag(library-only))
cpp-options: -DDEVELOPMENT
# This causes a warning when uploading to hackage:
Expand Down Expand Up @@ -165,8 +167,6 @@ executables:
when:
- condition: flag(library-only)
buildable: false
- condition: flag(threaded)
ghc-options: -threaded -with-rtsopts=-T

tests:
test:
Expand Down

0 comments on commit efa1010

Please sign in to comment.