82eb90c822d5856339a987dead8d596e5403adbd
[hadrian.git] / src / Settings / Packages / Touchy.hs
1 module Settings.Packages.Touchy (touchyPackageArgs) where
2
3 import Base
4 import GHC
5 import Predicate
6 import Settings
7
8 touchyPackageArgs :: Args
9 touchyPackageArgs = package touchy ? do
10 path <- getBuildPath
11 let cabalMacros = path -/- "autogen/cabal_macros.h"
12 mconcat [ builder Ghc ?
13 mconcat [ arg "-no-hs-main"
14 , remove ["-hide-all-packages"]
15 , removePair "-optP-include" $ "-optP" ++ cabalMacros ] ]