[build] Allow NO_WERROR=1 to inhibit --fatal-warnings as well as -Werror
This commit is contained in:
parent
24e948f030
commit
78a57a6f76
|
@ -283,7 +283,6 @@ CFLAGS += -Os -ffreestanding
|
||||||
CFLAGS += -Wall -W -Wformat-nonliteral
|
CFLAGS += -Wall -W -Wformat-nonliteral
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
CFLAGS += $(EXTRA_CFLAGS)
|
CFLAGS += $(EXTRA_CFLAGS)
|
||||||
ASFLAGS += --fatal-warnings
|
|
||||||
ASFLAGS += $(EXTRA_ASFLAGS)
|
ASFLAGS += $(EXTRA_ASFLAGS)
|
||||||
LDFLAGS += $(EXTRA_LDFLAGS)
|
LDFLAGS += $(EXTRA_LDFLAGS)
|
||||||
|
|
||||||
|
@ -295,6 +294,7 @@ EMBEDDED_IMAGE = image/default.gpxe
|
||||||
#
|
#
|
||||||
ifneq ($(NO_WERROR),1)
|
ifneq ($(NO_WERROR),1)
|
||||||
CFLAGS += -Werror
|
CFLAGS += -Werror
|
||||||
|
ASFLAGS += --fatal-warnings
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# compiler.h is needed for our linking and debugging system
|
# compiler.h is needed for our linking and debugging system
|
||||||
|
|
Reference in New Issue