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.
Work around the "can't use Natural in base" problem on a per-flavour …
…basis (#676) * Work around the "can't use natural in base" problem on a per-flavour basis The only flavours that need the workaround are the ones that build GHC/{Natural, Num}.hs with -O0, namely 'quick', 'quickest' and 'prof'. This patches defines the necessary arguments in one place and uses them in all the aforementionned flavour definitions. This will allow us to have both quick/quickest/prof builds that come through as well as an efficient compiler when we want it (with e.g perf), which wasn't the case before my series of patches for this problem. * address @snowleopard's feedback
- Loading branch information
1 parent
921dbbd
commit 1bbc4b3
Showing
6 changed files
with
32 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Settings.Flavours.Common where | ||
|
||
import Expression | ||
|
||
-- See https://ghc.haskell.org/trac/ghc/ticket/15286 and | ||
-- https://phabricator.haskell.org/D4880 | ||
naturalInBaseFixArgs :: Args | ||
naturalInBaseFixArgs = mconcat | ||
[ input "//Natural.hs" ? pure ["-fno-omit-interface-pragmas"] | ||
, input "//Num.hs" ? pure ["-fno-ignore-interface-pragmas"] | ||
] |
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
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