massive feat: added a GDB stub for debugging

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-16 07:45:54 +05:30
parent c22333812e
commit a7d919eea0
15 changed files with 708 additions and 34 deletions

View File

@@ -7,8 +7,18 @@ project('matar', 'cpp',
'cpp_std=c++23',
'default_library=static'])
lib_cpp_args = []
compiler = meson.get_compiler('cpp')
if get_option('disassembler')
lib_cpp_args += '-DDISASSEMBLER'
endif
if get_option('gdb_debug')
lib_cpp_args += '-DGDB_DEBUG'
endif
subdir('include')
subdir('src')
subdir('apps')