df1c553d25e58f76b796e21547150c2dbd99ef82
[hadrian.git] / src / Settings / Packages / GhcPrim.hs
1 module Settings.Packages.GhcPrim (ghcPrimPackageArgs) where
2
3 import Oracles.Flag
4 import Expression
5
6 ghcPrimPackageArgs :: Args
7 ghcPrimPackageArgs = package ghcPrim ? mconcat
8 [ builder GhcCabal ? arg "--flag=include-ghc-prim"
9
10 , builder (Cc CompileC) ?
11 (not <$> flag GccLt44) ?
12 (not <$> flag GccIsClang) ?
13 input "//cbits/atomic.c" ? arg "-Wno-sync-nand" ]