mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
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",
|
||||
)
|
||||
|
||||
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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user