Add support for AddressSanitizer to unit tests
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
6e9844b343
commit
47cc77f0e5
|
@ -125,4 +125,6 @@ if (CREATURELIB_TESTS)
|
||||||
|
|
||||||
# Add a definition for the test library
|
# Add a definition for the test library
|
||||||
target_compile_definitions(CreatureLibTests PRIVATE TESTS_BUILD)
|
target_compile_definitions(CreatureLibTests PRIVATE TESTS_BUILD)
|
||||||
|
target_compile_options(CreatureLibTests PRIVATE -fsanitize=address)
|
||||||
|
target_link_options(CreatureLibTests PRIVATE -fsanitize=address)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Reference in New Issue