Commit ae7358b5 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Andrey Mokhov
Browse files

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.
parent 49b13b8c
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment