Fix asan profile, add script for running tests

Linking against static asan library was a mistake. Now this should
work better for other compilers. Also added script for running all tests
under different profiles.
This commit is contained in:
2025-01-29 22:41:39 +03:00
parent 6ede63e18f
commit 8d73a9b473
2 changed files with 44 additions and 2 deletions

View File

@@ -32,12 +32,12 @@ set(CMAKE_CXX_FLAGS_ASAN
)
set(CMAKE_EXE_LINKER_FLAGS_ASAN
"${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fsanitize=address,undefined -static-libasan" CACHE STRING
"${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fsanitize=address,undefined" CACHE STRING
"Linker flags to be used to create executables for Asan build type." FORCE
)
set(CMAKE_SHARED_LINKER_FLAGS_ASAN
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=address,undefined -static-libasan" CACHE STRING
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=address,undefined" CACHE STRING
"Linker lags to be used to create shared libraries for Asan build type." FORCE
)