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.
This commit is contained in:
Lancelot de Ferrière
2025-05-04 11:19:32 +02:00
parent dc16f1ce82
commit 6931aca983
+1 -1
View File
@@ -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",