Add buildProgram rule.
[hadrian.git] / src / Rules / Resources.hs
1 module Rules.Resources (resourceRules, Resources (..)) where
2
3 import Base
4
5 data Resources = Resources
6 {
7 ghcCabal :: Resource,
8 ghcPkg :: Resource
9 }
10
11 -- Unfortunately parallel invokations of ghc-cabal or ghc-pkg do not work:
12 -- * https://mail.haskell.org/pipermail/ghc-commits/2013-May/001712.html
13 -- * ghc.mk: see comment about parallel ghc-pkg invokations
14 resourceRules :: Rules Resources
15 resourceRules = liftM2 Resources (newResource "ghc-cabal" 1)
16 (newResource "ghc-pkg" 1)