Fixing debug builds, does require newer AS from decompals (#837)

This commit is contained in:
Lightning 2022-10-27 18:42:27 -07:00 committed by GitHub
parent f67d317d5a
commit 0583c230a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -76,9 +76,12 @@ def write_ninja_rules(ninja: ninja_syntax.Writer, cpp: str, cppflags: str, extra
command=f"{cross}ld -T ver/$version/build/undefined_syms.txt -T ver/$version/undefined_syms_auto.txt -T ver/$version/undefined_funcs_auto.txt -Map $mapfile --no-check-sections -T $in -o $out",
)
Z64_DEBUG = ""
if debug:
Z64_DEBUG = "-gS -R .data -R .note -R .eh_frame -R .gnu.attributes -R .comment -R .options"
ninja.rule("z64",
description="rom $out",
command=f"{cross}objcopy $in $out -O binary && {BUILD_TOOLS}/rom/n64crc $out",
command=f"{cross}objcopy $in $out -O binary {Z64_DEBUG} && {BUILD_TOOLS}/rom/n64crc $out",
)
ninja.rule("sha1sum",

View File

@ -1,4 +1,4 @@
options:
linker_discard_section: False
ld_discard_section: False
create_elf_section_list_auto: True
elf_section_list_path: ver/us/build/elf_sections.txt