mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-04 04:53:32 +00:00
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:
parent
eacf5ccf30
commit
aa77d239a4
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue