Add test compiler option to test (#621)
[hadrian.git] / src / Settings / Packages / Base.hs
1 module Settings.Packages.Base (basePackageArgs) where
2
3 import Expression
4 import Settings
5
6 basePackageArgs :: Args
7 basePackageArgs = package base ? do
8 integerLibraryName <- pkgName <$> getIntegerPackage
9 mconcat [ builder GhcCabal ? arg ("--flags=" ++ integerLibraryName)
10 -- This fixes the 'unknown symbol stat' issue.
11 -- See: https://github.com/snowleopard/hadrian/issues/259.
12 , builder (Ghc CompileCWithGhc) ? arg "-optc-O2" ]