Minor revision
[hadrian.git] / src / Settings / Packages / Ghc.hs
1 module Settings.Packages.Ghc (ghcPackageArgs) where
2
3 import GHC
4 import Oracles.Config.Setting
5 import Predicate
6 import Settings.Paths
7
8 ghcPackageArgs :: Args
9 ghcPackageArgs = package ghc ? do
10 stage <- getStage
11 mconcat [ builder Ghc ? mconcat
12 [ arg $ "-I" ++ buildPath (vanillaContext stage compiler)
13 , arg "-no-hs-main" ]
14
15 , builder GhcCabal ?
16 ghcWithInterpreter ? notStage0 ? arg "--flags=ghci"
17 ]