Skip to content

Commit

Permalink
Fix auto-decomp.me scratch config ignoring extra_cflags
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Jul 11, 2024
1 parent 7de60fa commit 7916599
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,10 +1117,14 @@ def keep_flag(flag):
if compiler_version is None:
print(f"Missing scratch compiler mapping for {options['mw_version']}")
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"] = {
"platform": "gc_wii",
"compiler": compiler_version,
"c_flags": make_flags_str(cflags),
"c_flags": cflags_str,
"ctx_path": src_ctx_path,
"build_ctx": True,
}
Expand Down

0 comments on commit 7916599

Please sign in to comment.