sim: Always enable full UBSan feature to catch more error

since the resource is plenty on simulator

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-06 00:34:01 +08:00 committed by Alan Carvalho de Assis
parent d6b5a345a4
commit 33dabe3c38
2 changed files with 5 additions and 6 deletions

View File

@ -78,13 +78,12 @@ else ifeq ($(CONFIG_MM_KASAN_ALL),y)
endif
ifeq ($(CONFIG_SIM_UBSAN),y)
ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
ARCHOPTIMIZATION += -fsanitize=undefined
else ifeq ($(CONFIG_MM_UBSAN_ALL),y)
ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
endif
ifeq ($(CONFIG_MM_UBSAN_TRAP_ON_ERROR),y)
ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
ifeq ($(CONFIG_MM_UBSAN_TRAP_ON_ERROR),y)
ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
endif
endif
# Add -fno-common because macOS "ld -r" doesn't seem to pick objects

View File

@ -212,7 +212,7 @@ config MM_UBSAN_ALL
config MM_UBSAN_OPTION
string "UBSan options"
depends on MM_UBSAN || SIM_UBSAN
depends on MM_UBSAN
default "-fsanitize=undefined"
---help---
This option activates specified UBSan instrumentation. Please