Enable UBSan and ASan when building tests with clang

This commit is contained in:
Graham Pentheny 2023-04-14 17:30:38 -04:00
parent 5c494ad1ee
commit f4a65fd317

View File

@ -238,6 +238,11 @@ project "Tests"
-- distribute executable in RecastDemo/Bin directory
targetdir "Bin"
-- enable ubsan and asan when compiling with clang
filter "toolset:clang"
buildoptions { "-fsanitize=undefined", "-fsanitize=address" } -- , "-fsanitize=memory" }
linkoptions { "-fsanitize=undefined", "-fsanitize=address" } --, "-fsanitize=memory" }
-- linux library cflags and libs
filter "system:linux"
buildoptions {