waf: setup UBSAN_ENABLED define

This commit is contained in:
Andrew Tridgell 2022-07-11 13:30:48 +10:00
parent 9b0c8674d6
commit 4d4a1ddd42

View File

@ -561,6 +561,7 @@ class sitl(Board):
env.CXXFLAGS += [ env.CXXFLAGS += [
"-fsanitize=undefined", "-fsanitize=undefined",
"-fsanitize=float-cast-overflow", "-fsanitize=float-cast-overflow",
"-DUBSAN_ENABLED",
] ]
env.LINKFLAGS += [ env.LINKFLAGS += [
"-fsanitize=undefined", "-fsanitize=undefined",