Skip to content
Snippets Groups Projects
Commit fb4733f7 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[cmake] Also add -fsanitize=... to linker flags.

parent 79498920
No related branches found
No related tags found
No related merge requests found
...@@ -16,4 +16,5 @@ endif() ...@@ -16,4 +16,5 @@ endif()
if(DEFINED SANITIZE_FLAG_VALUE) if(DEFINED SANITIZE_FLAG_VALUE)
add_compile_options(-fsanitize=${SANITIZE_FLAG_VALUE} ${ADDITIONAL_FLAGS}) add_compile_options(-fsanitize=${SANITIZE_FLAG_VALUE} ${ADDITIONAL_FLAGS})
link_libraries(-fsanitize=${SANITIZE_FLAG_VALUE} ${ADDITIONAL_FLAGS})
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment