Commit 6267d8c9 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

Enable -Wcpp-undef for GHC and runtime system

This gets us much of the benefit of enabling it globally, which avoiding
(at least for now) the pain of making the core libraries build as well.
See #13636.

Test Plan: Validate

Reviewers: erikd, austin

Subscribers: rwbarton, thomie

GHC Trac Issues: #13636

Differential Revision:
parent f50e30e0
......@@ -8,9 +8,14 @@ SRC_HC_OPTS += -Wall
# isn't supported yet (
# See Note [Stage number in build variables] in mk/
SRC_HC_OPTS_STAGE1 += $(WERROR) #-Wcpp-undef
SRC_HC_OPTS_STAGE2 += $(WERROR) #-Wcpp-undef
# Enable -Wcpp-undef for GHC components only as we don't (currently) expect core
# libraries to build in this configuration (see #13636).
GhcRtsHcOpts += -Wcpp-undef
GhcStage1HcOpts += -Wcpp-undef
GhcStage2HcOpts += -Wcpp-undef
ifneq "$(GccIsClang)" "YES"
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