Enable UBSan and ASan when building tests with clang
This commit is contained in:
parent
5c494ad1ee
commit
f4a65fd317
@ -238,6 +238,11 @@ project "Tests"
|
|||||||
-- distribute executable in RecastDemo/Bin directory
|
-- distribute executable in RecastDemo/Bin directory
|
||||||
targetdir "Bin"
|
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
|
-- linux library cflags and libs
|
||||||
filter "system:linux"
|
filter "system:linux"
|
||||||
buildoptions {
|
buildoptions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user