projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
4b94cf0
)
cmake: use link_libraries() instead of add_link_options() for sanitizers
author
Michael Wallner
<mike@php.net>
Tue, 29 Sep 2020 11:42:47 +0000
(13:42 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 29 Sep 2020 11:42:47 +0000
(13:42 +0200)
CMake/CheckDebug.cmake
patch
|
blob
|
history
diff --git
a/CMake/CheckDebug.cmake
b/CMake/CheckDebug.cmake
index 4ab87f259fa37806ec8fa16db97412d348f09e9c..2c873d86959b4530840b7f27dbe6b2263104e0ff 100644
(file)
--- a/
CMake/CheckDebug.cmake
+++ b/
CMake/CheckDebug.cmake
@@
-49,7
+49,7
@@
function(check_debug)
if(HAVE_ASAN)
add_compile_definitions(HAVE_ASAN)
add_compile_options(-fsanitize=address)
-
add_link_options(-l
asan)
+
link_libraries(
asan)
check_flag(-fsanitize-recover=address IGNORE)
endif()
endif()
@@
-62,7
+62,7
@@
function(check_debug)
if(HAVE_UBSAN)
add_compile_definitions(HAVE_UBSAN)
add_compile_options(-fsanitize=undefined)
-
add_link_options(-l
ubsan)
+
link_libraries(
ubsan)
check_flag(-fsanitize-recover=undefined IGNORE)
endif()
endif()