Squashed 'hadrian/' content from commit 438dc57
[ghc.git] / src / Settings / Packages / Ghc.hs
1 module Settings.Packages.Ghc (ghcPackageArgs) where
2
3 import Expression
4 import Oracles.Setting
5 import Oracles.Flag (crossCompiling)
6
7 ghcPackageArgs :: Args
8 ghcPackageArgs = package ghc ? do
9 stage <- getStage
10 path <- expr $ buildPath (vanillaContext stage compiler)
11 mconcat [ builder Ghc ? arg ("-I" ++ path)
12 , builder GhcCabal ? ghcWithInterpreter ? notStage0 ? arg "--flags=ghci"
13 , builder GhcCabal ? crossCompiling ? arg "-f-terminfo" ]