2e0ced4c265d30725ca566e82ff8dbb4ecd12ca7
[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" ]