Only build iserv with -threaded if GhcThreaded is set
authorReid Barton <rwbarton@gmail.com>
Sun, 23 Apr 2017 14:03:22 +0000 (10:03 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 23 Apr 2017 15:05:48 +0000 (11:05 -0400)
commit317ceb41e1efe0566178090fa077c4e6f4f03f10
tree221ae65b69a97516cfdc315839d9bdb1b8883531
parent18c3a7ea0f7577514721feadefd9a62c228edb60
Only build iserv with -threaded if GhcThreaded is set

By default GhcThreaded is set by
```
GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO)
```
so it seems incorrect to try to build iserv with -threaded when
GhcThreaded is not set. This came up when I was building GHC with
some strange combination of flavours (debugged and profiled but not
threaded).

Test Plan: harbormaster

Reviewers: simonmar, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie, snowleopard

Differential Revision: https://phabricator.haskell.org/D3429
iserv/ghc.mk