From 26d31dbdef488f9a29b58a8823de3b457829cba2 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 26 Apr 2022 02:41:13 +0400 Subject: [PATCH] Move -fstack-clash-protection to GCC-only flags --- options_linux.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options_linux.cmake b/options_linux.cmake index de6f7db..b46a98a 100644 --- a/options_linux.cmake +++ b/options_linux.cmake @@ -7,7 +7,6 @@ target_compile_options(common_options INTERFACE -fstack-protector-all - -fstack-clash-protection -fPIC $,,-fno-strict-aliasing> -pipe @@ -34,6 +33,7 @@ INTERFACE if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") target_compile_options(common_options INTERFACE + -fstack-clash-protection -Wno-maybe-uninitialized ) endif()