cmake: Adjust sanitizer script for newer clang.

Also cleans up a terminology warning.
This commit is contained in:
Rylie Pavlik 2024-05-03 14:33:29 -05:00
parent a8077b58b6
commit 3f12e37970

View file

@ -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 ...)