ghc-bin.cabal.in: add a 'threaded' flag for hadrian
authorAlp Mestanogullari <alp@well-typed.com>
Mon, 1 Oct 2018 13:14:23 +0000 (15:14 +0200)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Mon, 1 Oct 2018 13:14:23 +0000 (15:14 +0200)
commit99eb4595910f20c41734aa07a2da4db1f25512ae
tree64cfa62ef1cd81fa44fe28cb2ba815421225f3e2
parent139ef7e19194c8396bb857df83fdd6bbe9ff3283
ghc-bin.cabal.in: add a 'threaded' flag for hadrian

Summary:
hadrian will explicitly enable this flag, but more importantly needs it
as otherwise we just never end up passing -threaded to GHC when building
a new GHC binary. We could quite likely unconditionally pass -threaded,
as the corresponding logic for GhcThreaded in mk/config.mk.in seems to
always lead to it being set to True, but we instead leave a way out for
anyone in need of a GHC linked against a non-threaded runtime system in
the future.

Test Plan: T8242 (with a GHC built by hadrian)

Reviewers: bgamari

Reviewed By: bgamari

Subscribers: rwbarton, carter

Differential Revision: https://phabricator.haskell.org/D5146
ghc/ghc-bin.cabal.in