This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add -Wno-sync-nand to ghcPrim's cbits/atomic.c
See GHC ticket #9678
- Loading branch information
1 parent
e908a4a
commit 6e73b4d
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
module Settings.Packages.GhcPrim (ghcPrimPackageArgs) where | ||
|
||
import GHC | ||
import Oracles.Config.Flag | ||
import Predicate | ||
|
||
ghcPrimPackageArgs :: Args | ||
ghcPrimPackageArgs = package ghcPrim ? | ||
builder GhcCabal ? arg "--flag=include-ghc-prim" | ||
ghcPrimPackageArgs = package ghcPrim ? mconcat | ||
[ builder GhcCabal ? arg "--flag=include-ghc-prim" | ||
|
||
, builder (Cc CompileC) ? | ||
(not <$> flag GccLt44) ? | ||
input "//cbits/atomic.c" ? arg "-Wno-sync-nand" ] |