Added -fsanitize-undefined-trap-on-error to help with a call stack on violations. Disabled by default
parent
0578334f7a
commit
134ba3e16b
|
|
@ -41,6 +41,7 @@ endif # PIC for x86_64 targets
|
||||||
# Undefined Behavior Sanitzier (Clang and G++)
|
# Undefined Behavior Sanitzier (Clang and G++)
|
||||||
ifeq ($(findstring ubsan,$(MAKECMDGOALS)),ubsan)
|
ifeq ($(findstring ubsan,$(MAKECMDGOALS)),ubsan)
|
||||||
CXXFLAGS += -fsanitize=undefined
|
CXXFLAGS += -fsanitize=undefined
|
||||||
|
# CXXFLAGS += -fsanitize-undefined-trap-on-error
|
||||||
endif # UBsan
|
endif # UBsan
|
||||||
|
|
||||||
# Address Sanitzier (Clang and G++)
|
# Address Sanitzier (Clang and G++)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue