mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-07 00:35:05 -04:00
add enabled-by-default option to use -Werror
This commit is contained in:
parent
c70745ab15
commit
abece7656b
2 changed files with 10 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -1,3 +1,4 @@
|
|||
CONFIG_WERROR := true
|
||||
CONFIG_NATIVE := true
|
||||
CONFIG_CXX_ALLOCATOR := true
|
||||
CONFIG_UBSAN := false
|
||||
|
@ -27,6 +28,10 @@ endef
|
|||
CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE
|
||||
SHARED_FLAGS := -O3 -flto -fPIC -fvisibility=hidden $(call safe_flag,-fno-plt) $(call safe_flag,-fstack-clash-protection) -fstack-protector-strong -pipe -Wall -Wextra $(call safe_flag,-Wcast-align=strict,-Wcast-align) -Wcast-qual -Wwrite-strings
|
||||
|
||||
ifeq ($(CONFIG_WERROR),true)
|
||||
SHARED_FLAGS += -Werror
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_NATIVE),true)
|
||||
SHARED_FLAGS += -march=native
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue