Actually remove config.debug all the way (#36)
This commit is contained in:
parent
3f0a1529ff
commit
39697835f3
|
@ -111,13 +111,14 @@ config = ProjectConfig()
|
||||||
config.version = str(args.version)
|
config.version = str(args.version)
|
||||||
version_num = VERSIONS.index(config.version)
|
version_num = VERSIONS.index(config.version)
|
||||||
|
|
||||||
|
debug = args.debug
|
||||||
|
|
||||||
# Apply arguments
|
# Apply arguments
|
||||||
config.build_dir = args.build_dir
|
config.build_dir = args.build_dir
|
||||||
config.dtk_path = args.dtk
|
config.dtk_path = args.dtk
|
||||||
config.objdiff_path = args.objdiff
|
config.objdiff_path = args.objdiff
|
||||||
config.binutils_path = args.binutils
|
config.binutils_path = args.binutils
|
||||||
config.compilers_path = args.compilers
|
config.compilers_path = args.compilers
|
||||||
config.debug = args.debug
|
|
||||||
config.generate_map = args.map
|
config.generate_map = args.map
|
||||||
config.non_matching = args.non_matching
|
config.non_matching = args.non_matching
|
||||||
config.sjiswrap_path = args.sjiswrap
|
config.sjiswrap_path = args.sjiswrap
|
||||||
|
@ -183,7 +184,7 @@ if config.generate_map:
|
||||||
# List unused symbols when generating a map file
|
# List unused symbols when generating a map file
|
||||||
config.ldflags.append("-mapunused")
|
config.ldflags.append("-mapunused")
|
||||||
|
|
||||||
if config.debug:
|
if debug:
|
||||||
# Debug flags
|
# Debug flags
|
||||||
cflags_base.extend(["-sym on", "-DDEBUG=1"])
|
cflags_base.extend(["-sym on", "-DDEBUG=1"])
|
||||||
config.ldflags.append("-g")
|
config.ldflags.append("-g")
|
||||||
|
|
Loading…
Reference in New Issue