summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index bf521b2008..07e1edcec2 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -143,7 +143,8 @@ include mk/warnings.mk
# (Optional) build-specific configuration
include mk/custom-settings.mk
SRC_CC_OPTS += $(WERROR)
-SRC_HC_OPTS += $(WERROR)
+GhcStage2HcOpts += $(WERROR)
+GhcLibHcOpts += $(WERROR)
# -----------------------------------------------------------------------------
# Check for inconsistent settings, after reading mk/build.mk.