76595adab41dda5cba0641abecfe962c4dda16e2
[hadrian.git] / src / Settings / GhcPkg.hs
1 module Settings.GhcPkg (
2 ghcPkgArgs
3 ) where
4
5 import Util
6 import Builder
7 import Switches
8 import Expression
9 import Settings.Util
10 import Settings.GhcCabal
11 import Settings.TargetDirectory
12
13 ghcPkgArgs :: Args
14 ghcPkgArgs = do
15 stage <- getStage
16 pkg <- getPackage
17 builder (GhcPkg stage) ? mconcat
18 [ arg "update"
19 , arg "--force"
20 , stage0 ? bootPackageDbArgs
21 , arg $ targetPath stage pkg -/- "inplace-pkg-config" ]