Actually remove config.debug all the way (#36)

This commit is contained in:
Nathan 2024-09-07 09:15:05 -06:00 committed by GitHub
parent 3f0a1529ff
commit 39697835f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -111,13 +111,14 @@ config = ProjectConfig()
config.version = str(args.version)
version_num = VERSIONS.index(config.version)
debug = args.debug
# Apply arguments
config.build_dir = args.build_dir
config.dtk_path = args.dtk
config.objdiff_path = args.objdiff
config.binutils_path = args.binutils
config.compilers_path = args.compilers
config.debug = args.debug
config.generate_map = args.map
config.non_matching = args.non_matching
config.sjiswrap_path = args.sjiswrap
@ -183,7 +184,7 @@ if config.generate_map:
# List unused symbols when generating a map file
config.ldflags.append("-mapunused")
if config.debug:
if debug:
# Debug flags
cflags_base.extend(["-sym on", "-DDEBUG=1"])
config.ldflags.append("-g")