Fix auto-decomp.me scratch config ignoring extra_cflags (#25)

This commit is contained in:
LagoLunatic 2024-07-11 14:46:39 -04:00 committed by GitHub
parent e45a0ecf5e
commit 5c333bd399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1116,10 +1116,14 @@ def generate_objdiff_config(
if compiler_version is None: if compiler_version is None:
print(f"Missing scratch compiler mapping for {options['mw_version']}") print(f"Missing scratch compiler mapping for {options['mw_version']}")
else: else:
cflags_str = make_flags_str(cflags)
if options["extra_cflags"] is not None:
extra_cflags_str = make_flags_str(options["extra_cflags"])
cflags_str += " " + extra_cflags_str
unit_config["scratch"] = { unit_config["scratch"] = {
"platform": "gc_wii", "platform": "gc_wii",
"compiler": compiler_version, "compiler": compiler_version,
"c_flags": make_flags_str(cflags), "c_flags": cflags_str,
"ctx_path": src_ctx_path, "ctx_path": src_ctx_path,
"build_ctx": True, "build_ctx": True,
} }