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
ca9c885657
commit
4eb33d7964
|
@ -119,6 +119,9 @@ if (ARBUTILS_TESTS)
|
|||
target_link_libraries(ArbutilsTests Arbutils ${LINKS})
|
||||
# Add a compilation definition to the code that we are building a test build.
|
||||
target_compile_definitions(ArbutilsTests PRIVATE TESTS_BUILD)
|
||||
|
||||
target_compile_options(ArbutilsTests PRIVATE -fsanitize=address)
|
||||
target_link_options(ArbutilsTests PRIVATE -fsanitize=address)
|
||||
endif ()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue