From 4d4a1ddd4213165bc20ab0f01d9a26095d229206 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Jul 2022 13:30:48 +1000 Subject: [PATCH] waf: setup UBSAN_ENABLED define --- Tools/ardupilotwaf/boards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 9196c7eafd..b96c3136ca 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -561,6 +561,7 @@ class sitl(Board): env.CXXFLAGS += [ "-fsanitize=undefined", "-fsanitize=float-cast-overflow", + "-DUBSAN_ENABLED", ] env.LINKFLAGS += [ "-fsanitize=undefined",