mirror of https://github.com/pmret/papermario.git
Fixing debug builds, does require newer AS from decompals (#837)
This commit is contained in:
parent
f67d317d5a
commit
0583c230a7
|
@ -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",
|
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",
|
ninja.rule("z64",
|
||||||
description="rom $out",
|
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",
|
ninja.rule("sha1sum",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
options:
|
options:
|
||||||
linker_discard_section: False
|
ld_discard_section: False
|
||||||
create_elf_section_list_auto: True
|
create_elf_section_list_auto: True
|
||||||
elf_section_list_path: ver/us/build/elf_sections.txt
|
elf_section_list_path: ver/us/build/elf_sections.txt
|
||||||
|
|
Loading…
Reference in New Issue