projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
github-actions
[awesomized/libmemcached]
/
CMake
/
CheckDebug.cmake
diff --git
a/CMake/CheckDebug.cmake
b/CMake/CheckDebug.cmake
index cd0dd9b40f0cbbdd5e68a4e5de4610b8fe5d9d91..32fbf26d1ddb1dcd7caf576d4a2fdb13a487e164 100644
(file)
--- a/
CMake/CheckDebug.cmake
+++ b/
CMake/CheckDebug.cmake
@@
-49,10
+49,7
@@
function(check_debug)
if(HAVE_ASAN)
add_compile_definitions(HAVE_ASAN)
add_compile_options(-fsanitize=address)
if(HAVE_ASAN)
add_compile_definitions(HAVE_ASAN)
add_compile_options(-fsanitize=address)
- if(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -v -fsanitize=address")
- endif()
- link_libraries(asan)
+ link_libraries(-fsanitize=address)
check_flag(-fsanitize-recover=address IGNORE)
endif()
endif()
check_flag(-fsanitize-recover=address IGNORE)
endif()
endif()
@@
-65,10
+62,7
@@
function(check_debug)
if(HAVE_UBSAN)
add_compile_definitions(HAVE_UBSAN)
add_compile_options(-fsanitize=undefined)
if(HAVE_UBSAN)
add_compile_definitions(HAVE_UBSAN)
add_compile_options(-fsanitize=undefined)
- if(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -v -fsanitize=undefined")
- endif()
- link_libraries(ubsan)
+ link_libraries(-fsanitize=undefined)
check_flag(-fsanitize-recover=undefined IGNORE)
endif()
endif()
check_flag(-fsanitize-recover=undefined IGNORE)
endif()
endif()