mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
build: Fortify non-MSVC builds. (#7120)
This commit is contained in:
parent
3f1f0aa7c2
commit
86566f1c14
1 changed files with 7 additions and 1 deletions
|
@ -102,7 +102,13 @@ if (MSVC)
|
||||||
else()
|
else()
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
-Wall
|
-Wall
|
||||||
-Wno-attributes
|
# In case a flag isn't supported on e.g. a certain architecture, don't error.
|
||||||
|
-Wno-unused-command-line-argument
|
||||||
|
# Build fortification options
|
||||||
|
-Wp,-D_FORTIFY_SOURCE=2
|
||||||
|
-Wp,-D_GLIBCXX_ASSERTIONS
|
||||||
|
-fstack-protector-strong
|
||||||
|
-fstack-clash-protection
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CITRA_WARNINGS_AS_ERRORS)
|
if (CITRA_WARNINGS_AS_ERRORS)
|
||||||
|
|
Loading…
Reference in a new issue