mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user