Merge "Add Secure compilation flag to voice processing library"

This commit is contained in:
qctecmdr 2020-09-23 21:57:09 -07:00 committed by Gerrit - the friendly Code Review server
commit bd7df3e87a
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ LOCAL_CFLAGS += -Wno-shorten-64-to-32
LOCAL_CFLAGS += -Wno-tautological-compare
LOCAL_CFLAGS += -Wno-unused-function
LOCAL_CFLAGS += -Wno-unused-local-typedef
ifeq ($(TARGET_BOARD_AUTO),true)
LOCAL_CFLAGS += -O2 -D_FORTIFY_SOURCE=2
LOCAL_CFLAGS += -fstack-protector-strong
endif
ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
LOCAL_SANITIZE := integer_overflow