hadrian: build ghc-iserv-prof in addition to ghc-iserv
authorAlp Mestanogullari <alp@well-typed.com>
Thu, 1 Nov 2018 22:31:46 +0000 (18:31 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 1 Nov 2018 22:36:08 +0000 (18:36 -0400)
commit695f1f2fe03d71bad47d52f003881b34eb5083b4
tree7259dc9204959d1eb68e6742e5468b0d5dc3fd2d
parentfcd919f991452cc0d42805fca6e549c2efeb0dde
hadrian: build ghc-iserv-prof in addition to ghc-iserv

As it is required for 10+ tests.

Hadrian didn't give us a chance to build a given executable in vanilla
and profiling, simultaneously, under two different names. This patch
implements support for this in general and applies it to
ghc-iserv[-prof].

Test Plan: scc001 fails without this patch, passes with it.

Reviewers: snowleopard, bgamari

Reviewed By: bgamari

Subscribers: simonpj, ndmitchell, simonmar, rwbarton, carter

Differential Revision: https://phabricator.haskell.org/D5255
hadrian/src/Packages.hs
hadrian/src/Rules/Program.hs
hadrian/src/Rules/Test.hs