From 6931aca983eeeca87c7f53df2e53f95feb39516e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lancelot=20de=20Ferri=C3=A8re?= Date: Sun, 4 May 2025 11:19:32 +0200 Subject: [PATCH] Switch to -fstack-protector-strong This allows the compiler to skip stack guards on some functions, leading to better performance at limited security expanse. Examples of such functions include isqrt64 and ComponentManager::PostMessage. --- build/premake/premake5.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index 842e8f2cb9..2959998b52 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -285,7 +285,7 @@ function project_set_build_flags() -- enable security features (stack checking etc) that shouldn't have -- a significant effect on performance and can catch bugs - "-fstack-protector-all", + "-fstack-protector-strong", -- always enable strict aliasing (useful in debug builds because of the warnings) "-fstrict-aliasing",