Всегда проверять флаги для динамического анализа

This commit is contained in:
2021-06-12 14:57:25 +03:00
parent f1ebe75238
commit 9b8b4fa98e
3 changed files with 3 additions and 9 deletions

View File

@ -29,9 +29,7 @@ set(FLAG_CANDIDATES "-g -fsanitize=safe-stack")
# add some handy functions
include(sanitize-helpers)
if(SANITIZE_SS)
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "SafeStack" "SS")
endif()
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "SafeStack" "SS")
function(add_sanitize_ss TARGET)
sanitizer_check_target(${TARGET})