mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-26 17:37:34 +00:00
cmake: Adjust sanitizer script for newer clang.
Also cleans up a terminology warning.
This commit is contained in:
parent
a8077b58b6
commit
3f12e37970
|
@ -44,14 +44,14 @@ find_package(UBSan ${FIND_QUIETLY_FLAG})
|
|||
|
||||
|
||||
|
||||
function(sanitizer_add_blacklist_file FILE)
|
||||
function(sanitizer_add_ignorelist_file FILE)
|
||||
if(NOT IS_ABSOLUTE ${FILE})
|
||||
set(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${FILE}")
|
||||
endif()
|
||||
get_filename_component(FILE "${FILE}" REALPATH)
|
||||
|
||||
sanitizer_check_compiler_flags("-fsanitize-blacklist=${FILE}"
|
||||
"SanitizerBlacklist" "SanBlist")
|
||||
sanitizer_check_compiler_flags("-fsanitize-ignorelist=${FILE}"
|
||||
"SanitizerIgnorelist" "SanIlist")
|
||||
endfunction()
|
||||
|
||||
function(add_sanitizers ...)
|
||||
|
|
Loading…
Reference in a new issue