[commit: ghc] wip/nfs-locking: Don't pass gcc warning options to ghc (#329) (ae7358b)
git at git.haskell.org
git at git.haskell.org
Fri Oct 27 00:50:56 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/ae7358b596831a2f7683c51e04274099b73c2f20/ghc
>---------------------------------------------------------------
commit ae7358b596831a2f7683c51e04274099b73c2f20
Author: Ben Gamari <ben at smart-cactus.org>
Date: Wed Jun 28 03:48:47 2017 -0400
Don't pass gcc warning options to ghc (#329)
We would previously pass -Werror=unused-but-set-variable and -Wno-error=inline
to ghc, despite the fact that they are gcc flags.
>---------------------------------------------------------------
ae7358b596831a2f7683c51e04274099b73c2f20
src/Settings/Default.hs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Settings/Default.hs b/src/Settings/Default.hs
index 49ffcb6..3ad1fab 100644
--- a/src/Settings/Default.hs
+++ b/src/Settings/Default.hs
@@ -72,9 +72,9 @@ defaultErrorGhcFlags =
mconcat [ notStage0 ? arg "-Werror"
, (not <$> flag GccIsClang) ? mconcat [
(not <$> flag GccLt46) ? (not <$> windowsHost) ?
- arg "-Werror=unused-but-set-variable"
- , (not <$> flag GccLt44) ? arg "-Wno-error=inline" ]
- , flag GccIsClang ? arg "-Wno-unknown-pragmas" ]
+ arg "-optc-Werror=unused-but-set-variable"
+ , (not <$> flag GccLt44) ? arg "-optc-Wno-error=inline" ]
+ , flag GccIsClang ? arg "-optc-Wno-unknown-pragmas" ]
-- | Default source arguments, e.g. optimisation settings.
defaultSourceArgs :: SourceArgs
More information about the ghc-commits
mailing list