mirror of
https://github.com/encounter/dtk-template.git
synced 2025-09-17 07:59:36 +00:00
Remove depfile from GNU as commands
Instead, hardcodes an implicit dependency on build/GAMEID/include/macros.inc, which is always written by decomp-toolkit. Resolves #51
This commit is contained in:
parent
c73e4b8f87
commit
f6f10ea187
@ -621,10 +621,13 @@ def generate_build_ninja(
|
|||||||
# GNU as
|
# GNU as
|
||||||
gnu_as = binutils / f"powerpc-eabi-as{EXE}"
|
gnu_as = binutils / f"powerpc-eabi-as{EXE}"
|
||||||
gnu_as_cmd = (
|
gnu_as_cmd = (
|
||||||
f"{CHAIN}{gnu_as} $asflags -o $out $in -MD $out.d"
|
f"{CHAIN}{gnu_as} $asflags -o $out $in"
|
||||||
+ f" && {dtk} elf fixup $out $out"
|
+ f" && {dtk} elf fixup $out $out"
|
||||||
)
|
)
|
||||||
gnu_as_implicit = [binutils_implicit or gnu_as, dtk]
|
gnu_as_implicit = [binutils_implicit or gnu_as, dtk]
|
||||||
|
# As a workaround for https://github.com/encounter/dtk-template/issues/51
|
||||||
|
# include macros.inc directly as an implicit dependency
|
||||||
|
gnu_as_implicit.append(build_path / "include" / "macros.inc")
|
||||||
|
|
||||||
if os.name != "nt":
|
if os.name != "nt":
|
||||||
transform_dep = config.tools_dir / "transform_dep.py"
|
transform_dep = config.tools_dir / "transform_dep.py"
|
||||||
@ -676,8 +679,9 @@ def generate_build_ninja(
|
|||||||
name="as",
|
name="as",
|
||||||
command=gnu_as_cmd,
|
command=gnu_as_cmd,
|
||||||
description="AS $out",
|
description="AS $out",
|
||||||
depfile="$out.d",
|
# See https://github.com/encounter/dtk-template/issues/51
|
||||||
deps="gcc",
|
# depfile="$out.d",
|
||||||
|
# deps="gcc",
|
||||||
)
|
)
|
||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user