imp:cli,ui,web: always build with -threaded [#2495]
It's required for runPager and presumably for the web server among other things. The old "threaded" build flag has been dropped.
This commit is contained in:
parent
098e65352c
commit
4920d76a3a
@ -43,11 +43,6 @@ flag debug
|
|||||||
manual: True
|
manual: True
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
flag threaded
|
|
||||||
description: Build with support for multithreaded execution
|
|
||||||
manual: True
|
|
||||||
default: True
|
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Hledger.UI
|
Hledger.UI
|
||||||
@ -124,7 +119,7 @@ executable hledger-ui
|
|||||||
Paths_hledger_ui
|
Paths_hledger_ui
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
app
|
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 -threaded
|
||||||
cpp-options: -DVERSION="1.50.99"
|
cpp-options: -DVERSION="1.50.99"
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.18 && <4.22
|
base >=4.18 && <4.22
|
||||||
@ -132,5 +127,3 @@ executable hledger-ui
|
|||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
if (flag(debug))
|
if (flag(debug))
|
||||||
cpp-options: -DDEBUG
|
cpp-options: -DDEBUG
|
||||||
if flag(threaded)
|
|
||||||
ghc-options: -threaded
|
|
||||||
|
|||||||
@ -29,10 +29,6 @@ extra-source-files:
|
|||||||
- hledger-ui.info
|
- hledger-ui.info
|
||||||
|
|
||||||
flags:
|
flags:
|
||||||
threaded:
|
|
||||||
description: Build with support for multithreaded execution
|
|
||||||
default: true
|
|
||||||
manual: true
|
|
||||||
debug:
|
debug:
|
||||||
description: Build with GHC 9.10+ stack traces enabled
|
description: Build with GHC 9.10+ stack traces enabled
|
||||||
default: false
|
default: false
|
||||||
@ -112,8 +108,7 @@ executables:
|
|||||||
hledger-ui:
|
hledger-ui:
|
||||||
source-dirs: app
|
source-dirs: app
|
||||||
main: hledger-ui.hs
|
main: hledger-ui.hs
|
||||||
when:
|
# -threaded is needed for runPager, at least
|
||||||
- condition: flag(threaded)
|
ghc-options: -threaded
|
||||||
ghc-options: -threaded
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- hledger-ui
|
- hledger-ui
|
||||||
|
|||||||
@ -128,11 +128,6 @@ flag library-only
|
|||||||
manual: True
|
manual: True
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
flag threaded
|
|
||||||
description: Build with support for multithreaded execution.
|
|
||||||
manual: True
|
|
||||||
default: True
|
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Hledger.Web
|
Hledger.Web
|
||||||
@ -158,7 +153,7 @@ library
|
|||||||
Paths_hledger_web
|
Paths_hledger_web
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
./
|
./
|
||||||
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 -threaded
|
||||||
cpp-options: -DVERSION="1.50.99"
|
cpp-options: -DVERSION="1.50.99"
|
||||||
build-depends:
|
build-depends:
|
||||||
Decimal >=0.5.1
|
Decimal >=0.5.1
|
||||||
@ -211,8 +206,6 @@ library
|
|||||||
, yesod-static >=1.4 && <1.7
|
, yesod-static >=1.4 && <1.7
|
||||||
, yesod-test
|
, yesod-test
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
if flag(threaded)
|
|
||||||
ghc-options: -threaded
|
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
@ -228,14 +221,12 @@ executable hledger-web
|
|||||||
Paths_hledger_web
|
Paths_hledger_web
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
app
|
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 -threaded
|
||||||
cpp-options: -DVERSION="1.50.99"
|
cpp-options: -DVERSION="1.50.99"
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.18 && <4.22
|
base >=4.18 && <4.22
|
||||||
, hledger-web
|
, hledger-web
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
if flag(threaded)
|
|
||||||
ghc-options: -threaded
|
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
@ -250,14 +241,12 @@ test-suite apptest
|
|||||||
main-is: test.hs
|
main-is: test.hs
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
test
|
test
|
||||||
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 -threaded
|
||||||
cpp-options: -DVERSION="1.50.99"
|
cpp-options: -DVERSION="1.50.99"
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.18 && <4.22
|
base >=4.18 && <4.22
|
||||||
, hledger-web
|
, hledger-web
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
if flag(threaded)
|
|
||||||
ghc-options: -threaded
|
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
|
|||||||
@ -55,10 +55,6 @@ flags:
|
|||||||
description: Turn on development settings, like auto-reload templates.
|
description: Turn on development settings, like auto-reload templates.
|
||||||
default: false
|
default: false
|
||||||
manual: true
|
manual: true
|
||||||
threaded:
|
|
||||||
description: Build with support for multithreaded execution.
|
|
||||||
default: true
|
|
||||||
manual: true
|
|
||||||
debug:
|
debug:
|
||||||
description: Build with GHC 9.10+ stack traces enabled # '
|
description: Build with GHC 9.10+ stack traces enabled # '
|
||||||
default: false
|
default: false
|
||||||
@ -82,12 +78,10 @@ ghc-options:
|
|||||||
- -Wno-orphans
|
- -Wno-orphans
|
||||||
- -Wno-type-defaults
|
- -Wno-type-defaults
|
||||||
- -Wno-unused-do-bind
|
- -Wno-unused-do-bind
|
||||||
|
- -threaded # needed for runPager & probably other things
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
|
||||||
- condition: flag(threaded)
|
|
||||||
ghc-options: -threaded
|
|
||||||
|
|
||||||
- condition: (flag(dev)) || (flag(library-only))
|
- condition: (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
|
|
||||||
|
|||||||
@ -101,11 +101,6 @@ flag debug
|
|||||||
manual: True
|
manual: True
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
flag threaded
|
|
||||||
description: Build with support for multithreaded execution
|
|
||||||
manual: True
|
|
||||||
default: True
|
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Hledger.Cli
|
Hledger.Cli
|
||||||
@ -212,7 +207,7 @@ executable hledger
|
|||||||
Paths_hledger
|
Paths_hledger
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
app
|
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 -with-rtsopts=-T
|
ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind -optP-Wno-nonportable-include-path -threaded -with-rtsopts=-T
|
||||||
cpp-options: -DVERSION="1.50.99"
|
cpp-options: -DVERSION="1.50.99"
|
||||||
build-depends:
|
build-depends:
|
||||||
Decimal >=0.5.1
|
Decimal >=0.5.1
|
||||||
@ -257,8 +252,6 @@ executable hledger
|
|||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
if (flag(debug))
|
if (flag(debug))
|
||||||
cpp-options: -DDEBUG
|
cpp-options: -DDEBUG
|
||||||
if flag(threaded)
|
|
||||||
ghc-options: -threaded
|
|
||||||
|
|
||||||
test-suite unittest
|
test-suite unittest
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
|
|||||||
@ -91,10 +91,6 @@ extra-source-files:
|
|||||||
- Hledger/Cli/Commands/Test.txt
|
- Hledger/Cli/Commands/Test.txt
|
||||||
|
|
||||||
flags:
|
flags:
|
||||||
threaded:
|
|
||||||
description: Build with support for multithreaded execution
|
|
||||||
default: true
|
|
||||||
manual: true
|
|
||||||
debug:
|
debug:
|
||||||
description: Build with GHC 9.10+ stack traces enabled
|
description: Build with GHC 9.10+ stack traces enabled
|
||||||
default: false
|
default: false
|
||||||
@ -223,10 +219,9 @@ executables:
|
|||||||
hledger:
|
hledger:
|
||||||
source-dirs: app
|
source-dirs: app
|
||||||
main: hledger-cli.hs
|
main: hledger-cli.hs
|
||||||
ghc-options: -with-rtsopts=-T # for stats command
|
# -threaded is needed for runPager, at least
|
||||||
when:
|
# -T is for the stats command
|
||||||
- condition: flag(threaded)
|
ghc-options: -threaded -with-rtsopts=-T
|
||||||
ghc-options: -threaded
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- hledger
|
- hledger
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user