From 75a94e010fb5b0236c670d22b04f5472397dc15d Mon Sep 17 00:00:00 2001 From: PHO Date: Sun, 22 Jan 2023 01:21:29 +0900 Subject: [PATCH] Add a flag "threaded" for building haddock with the threaded RTS GHC isn't guaranteed to have a threaded RTS. There should be a way to build it with the vanilla one. --- haddock.cabal | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/haddock.cabal b/haddock.cabal index 64ec969965..7cc6189746 100644 --- a/haddock.cabal +++ b/haddock.cabal @@ -60,11 +60,18 @@ flag in-ghc-tree default: False manual: True +flag threaded + description: Build haddock with the threaded RTS + default: True + manual: True + executable haddock default-language: Haskell2010 main-is: Main.hs hs-source-dirs: driver - ghc-options: -funbox-strict-fields -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -O2 -threaded + ghc-options: -funbox-strict-fields -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -O2 + if flag(threaded) + ghc-options: -threaded -- haddock typically only supports a single GHC major version build-depends: