summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-07-11 14:10:52 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-07-11 14:10:52 -0400
commit7916599cad12c8a6809946ac07e8a2479f38a5cc (patch)
tree2ddcd826d4957fd0971a1a0866a7fe77bc9075be
parent7de60faf9c60f91046443fa20f75170e28895bf7 (diff)
Fix auto-decomp.me scratch config ignoring extra_cflags
-rw-r--r--tools/project.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/project.py b/tools/project.py
index fd39b85b..1d934e23 100644
--- a/tools/project.py
+++ b/tools/project.py
@@ -1117,10 +1117,14 @@ def generate_objdiff_config(
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,
}