fix:web: -threaded is needed in test suite now also

This commit is contained in:
Simon Michael 2024-12-20 11:38:31 -10:00
parent c23087f124
commit efa101091c
2 changed files with 8 additions and 4 deletions

View File

@ -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)
@ -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)
@ -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
@ -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)

View File

@ -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:
@ -165,8 +167,6 @@ executables:
when:
- condition: flag(library-only)
buildable: false
- condition: flag(threaded)
ghc-options: -threaded -with-rtsopts=-T
tests:
test: