Add -D_FORTIFY_SOURCE=2 to compiler flags

Be way more aggressive towards Memory Violations.

Signed-off-by: Hadi Chokr <hadichokr@icloud.com>
This commit is contained in:
Hadi Chokr 2026-04-02 10:53:06 +02:00
parent eacf5ccf30
commit aa77d239a4

View file

@ -6,7 +6,7 @@ project(
default_options: [
'cpp_std=c++23',
'warning_level=0',
'buildtype=debug', # for now
'buildtype=debugoptimized', # for now
'unity=on', # merge source files per target
'unity_size=8', # TODO: mess around with this
'b_pch=true', # precompiled headers
@ -24,6 +24,7 @@ global_cpp_defs = [
'-D_EXTENDED_ACHIEVEMENTS',
'-D_DEBUG_MENUS_ENABLED',
'-D_DEBUG',
'-D_FORTIFY_SOURCE=2',
'-DDEBUG',
]
@ -85,4 +86,3 @@ subdir('targets/platform')
subdir('targets/resources')
subdir('targets/minecraft')
subdir('targets/app')