Skip to content
Snippets Groups Projects
Commit e294f7a2 authored by PHO's avatar PHO Committed by Marge Bot
Browse files

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.

(cherry picked from commit 75a94e010fb5b0236c670d22b04f5472397dc15d)
parent e4db1112
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment