diff options
Diffstat (limited to 'ghc.mk')
-rw-r--r-- | ghc.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -142,6 +142,14 @@ include mk/warnings.mk # (Optional) build-specific configuration include mk/custom-settings.mk +SRC_CC_OPTS += -Wall +SRC_HC_OPTS += -Wall +# Don't add -Werror to GhcStage1HcOpts, because otherwise validate may +# unnecessarily fail during the stage1 build when booting with an older +# compiler. +# It would be better to only exclude certain warnings from becoming errors +# (e.g. '-Werror -Wno-error=unused-imports -Wno-error=...'), but -Wno-error +# isn't supported yet (https://ghc.haskell.org/trac/ghc/wiki/Design/Warnings). SRC_CC_OPTS += $(WERROR) GhcStage2HcOpts += $(WERROR) GhcLibHcOpts += $(WERROR) |