Skip to content

Enable -Wcpp-undef

e5b3492f tried (again) to enable -Wcpp-undef in mk/warnings.mk,

SRC_HC_OPTS_STAGE1 += $(WERROR) #-Wcpp-undef
SRC_HC_OPTS_STAGE2 += $(WERROR) #-Wcpp-undef

Unfortunately, this caused build failures in boot libraries on some platforms (e.g. time on Darwin). Resolve these and reenable -Wcpp-undef.

An alternative would be to instead only add -Wcpp-undef to GhcRtsHcOpts, GhcStage1HcOpts and GhcStage2HcOpts.

Trac metadata
Trac field Value
Version 8.1
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information