Add support for AddressSanitizer to unit tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-03-22 12:30:10 +01:00
parent 6e9844b343
commit 47cc77f0e5
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 0 deletions

View File

@ -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 ()