Всегда проверять флаги для динамического анализа
This commit is contained in:
parent
f1ebe75238
commit
9b8b4fa98e
4
thirdparty/sanitizers/FindCFI.cmake
vendored
4
thirdparty/sanitizers/FindCFI.cmake
vendored
@ -34,9 +34,7 @@ set(FLAG_CANDIDATES
|
||||
# add some handy functions
|
||||
include(sanitize-helpers)
|
||||
|
||||
if(SANITIZE_CFI)
|
||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "ControlFlowIntegrity" "CFI")
|
||||
endif()
|
||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "ControlFlowIntegrity" "CFI")
|
||||
|
||||
function(add_sanitize_cfi TARGET)
|
||||
sanitizer_check_target(${TARGET})
|
||||
|
4
thirdparty/sanitizers/FindLeakSan.cmake
vendored
4
thirdparty/sanitizers/FindLeakSan.cmake
vendored
@ -29,9 +29,7 @@ set(FLAG_CANDIDATES "-g -fsanitize=leak")
|
||||
|
||||
include(sanitize-helpers)
|
||||
|
||||
if(SANITIZE_LEAK)
|
||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "LeakSanitizer" "LeakSan")
|
||||
endif()
|
||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "LeakSanitizer" "LeakSan")
|
||||
|
||||
function(add_sanitize_leak TARGET)
|
||||
sanitizer_check_target(${TARGET})
|
||||
|
4
thirdparty/sanitizers/FindSS.cmake
vendored
4
thirdparty/sanitizers/FindSS.cmake
vendored
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user