Base.hs 471 Bytes
Newer Older
1 2
module Settings.Packages.Base (basePackageArgs) where

3
import Expression
4
import Settings
5 6

basePackageArgs :: Args
7
basePackageArgs = package base ? do
8 9
    integerLibraryName <- pkgName <$> getIntegerPackage
    mconcat [ builder GhcCabal ? arg ("--flags=" ++ integerLibraryName)
10 11
            -- This fixes the 'unknown symbol stat' issue.
            -- See: https://github.com/snowleopard/hadrian/issues/259.
12
            , builder (Ghc CompileCWithGhc) ? arg "-optc-O2" ]