Skip to content

Commit

Permalink
Keep track of dependencies between libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Dec 22, 2024
1 parent 4a5dd41 commit ac1b577
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion edalize/tools/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def setup(self, edam):
self.f_files = {}
self.workdirs = []
target_files = []
libdeps = self.edam.get("library_dependencies", {})
for lib, files in libs.items():
cmds = {}
has_vlog = False
Expand Down Expand Up @@ -143,10 +144,14 @@ def setup(self, edam):
i += 1
if has_vlog:
depfiles += include_files
libdepfiles = []
for l in libdeps.get(lib, []):
if l in libs:
libdepfiles.append(l+"/AN.DB/make.vlogan")
self.commands.add(
[cmd] + full64 + ["-f", f_file, "-work", workdir] + fnames,
[workdir + "/" + target_file],
depfiles + [f_file],
depfiles + [f_file] + libdepfiles,
)
target_files.append(workdir + "/" + target_file)
self.f_files.update(f_files)
Expand Down

0 comments on commit ac1b577

Please sign in to comment.