Support multiple targets in add_sanitizers.
This commit is contained in:
parent
8fe13da3a5
commit
5bfe8a8e51
@ -52,9 +52,11 @@ function(sanitizer_add_blacklist_file FILE)
|
|||||||
"SanitizerBlacklist" "SanBlist")
|
"SanitizerBlacklist" "SanBlist")
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(add_sanitizers TARGET)
|
function(add_sanitizers ...)
|
||||||
add_sanitize_address(${TARGET})
|
foreach (TARGET ${ARGV})
|
||||||
add_sanitize_thread(${TARGET})
|
add_sanitize_address(${TARGET})
|
||||||
add_sanitize_memory(${TARGET})
|
add_sanitize_thread(${TARGET})
|
||||||
add_sanitize_undefined(${TARGET})
|
add_sanitize_memory(${TARGET})
|
||||||
|
add_sanitize_undefined(${TARGET})
|
||||||
|
endforeach ()
|
||||||
endfunction(add_sanitizers)
|
endfunction(add_sanitizers)
|
||||||
|
Loading…
Reference in New Issue
Block a user