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:
parent
d6b5a345a4
commit
33dabe3c38
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user