Added -fsanitize-undefined-trap-on-error to help with a call stack on violations. Disabled by default

pull/35/head
Jeffrey Walton 2015-07-17 11:02:37 -04:00
parent 0578334f7a
commit 134ba3e16b
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ endif # PIC for x86_64 targets
# Undefined Behavior Sanitzier (Clang and G++)
ifeq ($(findstring ubsan,$(MAKECMDGOALS)),ubsan)
CXXFLAGS += -fsanitize=undefined
# CXXFLAGS += -fsanitize-undefined-trap-on-error
endif # UBsan
# Address Sanitzier (Clang and G++)