diff --git a/hledger-ui/hledger-ui.cabal b/hledger-ui/hledger-ui.cabal index 82b53e845..688f59b68 100644 --- a/hledger-ui/hledger-ui.cabal +++ b/hledger-ui/hledger-ui.cabal @@ -120,7 +120,7 @@ executable hledger-ui Paths_hledger_ui hs-source-dirs: app - ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind + ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind -with-rtsopts=-T cpp-options: -DVERSION="1.41.99" build-depends: base >=4.14 && <4.21 @@ -129,4 +129,4 @@ executable hledger-ui if (flag(debug)) cpp-options: -DDEBUG if flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded diff --git a/hledger-ui/package.yaml b/hledger-ui/package.yaml index 89339b181..76106c693 100644 --- a/hledger-ui/package.yaml +++ b/hledger-ui/package.yaml @@ -134,6 +134,7 @@ executables: dependencies: - base >=4.14 && <4.21 - hledger-ui + ghc-options: -with-rtsopts=-T # for stats command when: - condition: flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded diff --git a/hledger/hledger.cabal b/hledger/hledger.cabal index 7ae6ea53c..9d2d67f4e 100644 --- a/hledger/hledger.cabal +++ b/hledger/hledger.cabal @@ -201,7 +201,7 @@ executable hledger Paths_hledger hs-source-dirs: app - ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind -optP-Wno-nonportable-include-path + ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind -optP-Wno-nonportable-include-path -with-rtsopts=-T cpp-options: -DVERSION="1.41.99" build-depends: Decimal >=0.5.1 @@ -244,7 +244,7 @@ executable hledger if (flag(debug)) cpp-options: -DDEBUG if flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded test-suite unittest type: exitcode-stdio-1.0 diff --git a/hledger/package.yaml b/hledger/package.yaml index 3c395528b..2724dd6b3 100644 --- a/hledger/package.yaml +++ b/hledger/package.yaml @@ -217,9 +217,10 @@ executables: source-dirs: app main: hledger-cli.hs cpp-options: -DVERSION="1.41.99" + ghc-options: -with-rtsopts=-T # for stats command when: - condition: flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded dependencies: - hledger