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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user