Commit 31bcf9b6 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

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
parent 3021cc06
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment