From 9b8b4fa98ec3f2ad43c5524dbcf8a33294df5370 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 12 Jun 2021 14:57:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=81=D0=B5=D0=B3=D0=B4=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D1=8F=D1=82=D1=8C=20=D1=84=D0=BB?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B4=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=D0=BC=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=B0=D0=BD=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thirdparty/sanitizers/FindCFI.cmake | 4 +--- thirdparty/sanitizers/FindLeakSan.cmake | 4 +--- thirdparty/sanitizers/FindSS.cmake | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/thirdparty/sanitizers/FindCFI.cmake b/thirdparty/sanitizers/FindCFI.cmake index fbfa43a..d216cb6 100644 --- a/thirdparty/sanitizers/FindCFI.cmake +++ b/thirdparty/sanitizers/FindCFI.cmake @@ -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}) diff --git a/thirdparty/sanitizers/FindLeakSan.cmake b/thirdparty/sanitizers/FindLeakSan.cmake index 37a9746..b52ca57 100644 --- a/thirdparty/sanitizers/FindLeakSan.cmake +++ b/thirdparty/sanitizers/FindLeakSan.cmake @@ -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}) diff --git a/thirdparty/sanitizers/FindSS.cmake b/thirdparty/sanitizers/FindSS.cmake index 8f777a6..8b5ee84 100644 --- a/thirdparty/sanitizers/FindSS.cmake +++ b/thirdparty/sanitizers/FindSS.cmake @@ -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})