hadrian: Drop -Werror=unused-but-set-variable from GHC flags

Authored by bgamari on Thu, Oct 24, 6:54 PM.

Description

hadrian: Drop -Werror=unused-but-set-variable from GHC flags

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.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Tue, Oct 29, 2:48 AM
Parents
rGHCb741d19dc038: hadrian: Shuffle around RTS build flags
Branches
Unknown
Tags
Unknown