blob: d7b1d78ddd335894181dd5019c5e988a8571dc74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Settings.Packages.Ghc (ghcPackageArgs) where
import Expression
import Oracles.Setting
import Oracles.Flag (crossCompiling)
ghcPackageArgs :: Args
ghcPackageArgs = package ghc ? do
stage <- getStage
path <- expr $ buildPath (vanillaContext stage compiler)
mconcat [ builder Ghc ? arg ("-I" ++ path)
, builder GhcCabal ? ghcWithInterpreter ? notStage0 ? arg "--flags=ghci"
, builder GhcCabal ? crossCompiling ? arg "-f-terminfo" ]
|