From 3d32cf809e8a9c19ebeb327e7d2d9d16b8cee069 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Wed, 3 Jul 2024 19:18:39 +0300 Subject: [PATCH] build: synth depends on .ys as well. --- src/niar/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/niar/build.py b/src/niar/build.py index 14c4f93..9f0fe6c 100644 --- a/src/niar/build.py +++ b/src/niar/build.py @@ -75,8 +75,11 @@ def main(np: Project, args): products = plan.execute_local(f"build/{subdir}") # The outf doesn't exist here; it's only used for the digest name basis. + + # This is specific to toolchains that use Yosys, but I'm unlikely to use anything else ... + deps = [f"{np.name}.il", f"{np.name}.ys"] cr.add_process(execute_build, - infs=[{np.path.build(subdir, fn): plan.files[fn]}], + infs=[{np.path.build(subdir, fn): plan.files[fn] for fn in deps}], outf=np.path.build(subdir, np.name)) cr.run()