summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2015-11-01 10:18:07 +0100
committerBen Gamari <ben@smart-cactus.org>2015-11-01 10:18:21 +0100
commit31bcf9b62ceaed98bdd3b7605e68d315bcff0c8a (patch)
tree662e6e5859041f259d05461b6f37087cb1b0adcb
parent3021cc06f84109c6e7a529318d690c520748f936 (diff)
downloadhaskell-31bcf9b62ceaed98bdd3b7605e68d315bcff0c8a.tar.gz
Apply WERROR only to stage2 HC options
Otherwise validate unnecessarily may fail during the stage1 build when booting with an older compiler. Test Plan: Try it Reviewers: thomie, austin Reviewed By: thomie, austin Differential Revision: https://phabricator.haskell.org/D1390
-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.