From ded9a8c60f8a09aef3b7fbaded39a6b30883bf41 Mon Sep 17 00:00:00 2001 From: i80287 Date: Mon, 14 Oct 2024 02:15:43 +0300 Subject: [PATCH] update usages of -mshstk and -fstack-protector-strong in the CMakeLists.txt --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 11ace8e..35fff3c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -94,11 +94,11 @@ function(configure_gcc_or_clang_gcc_options) -Wformat=2 -Werror -pedantic-errors + -fstack-protector-strong ) - if (NOT USING_MINGW_GCC) + if (NOT USING_MINGW_GCC AND CMAKE_SYSTEM_NAME MATCHES "Linux") set(LOCAL_FN_TEST_COMPILE_OPTIONS ${LOCAL_FN_TEST_COMPILE_OPTIONS} - -fstack-protector-strong -mshstk ) endif()