diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-10-24 19:54:30 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-10-27 19:34:02 -0400 |
commit | ba6ce52cb0c0291a21872109062948bb044d97fd (patch) | |
tree | 6feb6a1cb5c89246f5262efdbcc0efe06db3faae | |
parent | 870ffe55611ef8b62c2ea4676dde4b581705c74a (diff) | |
download | haskell-wip/unreg-hadrian.tar.gz |
hadrian: Drop -Werror=unused-but-set-variable from GHC flagswip/unreg-hadrian
Previously `hadrian` would pass `-optc-Werror=unused-but-set-variable`
to all GHC invocations. This was a difference from the make build system
and cause the unregisterised build to fail as the C that GHC produces
contains many unused functions. Drop it from the GHC flags.
Note, however, that the flag is still present in
`Settings.Builders.Common.cWarnings` and therefore will still be applied
during compilation of C sources.
-rw-r--r-- | hadrian/src/Settings/Warnings.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hadrian/src/Settings/Warnings.hs b/hadrian/src/Settings/Warnings.hs index 0d654411c4..29f9e3b968 100644 --- a/hadrian/src/Settings/Warnings.hs +++ b/hadrian/src/Settings/Warnings.hs @@ -11,9 +11,7 @@ import Settings defaultGhcWarningsArgs :: Args defaultGhcWarningsArgs = mconcat [ notStage0 ? arg "-Wnoncanonical-monad-instances" - , (not <$> flag CcLlvmBackend) ? mconcat - [ not windowsHost ? arg "-optc-Werror=unused-but-set-variable" - , arg "-optc-Wno-error=inline" ] + , notM (flag CcLlvmBackend) ? arg "-optc-Wno-error=inline" , flag CcLlvmBackend ? arg "-optc-Wno-unknown-pragmas" ] -- | Package-specific warnings-related arguments, mostly suppressing various warnings. |