| Revision | 83e59b98454f678150c24a0a7095dfc4418ad270 (tree) |
|---|---|
| Time | 2023-03-19 21:28:55 |
| Author | Starg <starg@user...> |
| Commiter | Starg |
Enable stack protection
| @@ -272,7 +272,8 @@ if(MSVC) | ||
| 272 | 272 | -DSTDOUT_FILENO=1 |
| 273 | 273 | ) |
| 274 | 274 | else() |
| 275 | - add_compile_options(-Wall -Wextra -Wno-missing-braces -ffast-math) | |
| 275 | + add_compile_definitions(_FORTIFY_SOURCE=2) | |
| 276 | + add_compile_options(-Wall -Wextra -Wno-missing-braces -ffast-math -fstack-protector-strong) | |
| 276 | 277 | |
| 277 | 278 | if("${TIM41_GCC_WITH_LIBICONV}") |
| 278 | 279 | add_compile_options(-finput-charset=cp932 -fexec-charset=cp932) |