mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-23 09:02:27 +00:00
Add -D_FORTIFY_SOURCE=2 to compiler flags
Be way more aggressive towards Memory Violations. Signed-off-by: Hadi Chokr <[email protected]>
This commit is contained in:
+2
-2
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user