Makefile: DEBUG option (#86)

* Makefile: DEBUG option

* diff_settings.py: if diffing with --source, make DEBUG=1

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
Erin Moon
2021-01-18 13:16:09 -06:00
committed by GitHub
parent ebd329b188
commit e35c282900
2 changed files with 14 additions and 1 deletions
+2
View File
@@ -11,6 +11,8 @@ def apply(config, args):
config['myimg'] = 'build/dolzel2/main.elf'
config['baseimg'] = 'baserom.elf'
config['makeflags'] = []
if args.source:
config['makeflags'].append('DEBUG=1')
config['source_directories'] = ['src', 'libs', 'include']
config['arch'] = 'ppc'
config['objdump_executable'] = f"{os.environ['DEVKITPPC']}/bin/powerpc-eabi-objdump"