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 Jan 22, 2025
1 parent 1781ae6 commit 8e6ee68
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions edalize/tools/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,12 @@ 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
# Group into individual commands
for (cmd, fname, defines) in files:
for cmd, fname, defines in files:
if not (cmd, defines) in cmds:
cmds[(cmd, defines)] = []
cmds[(cmd, defines)].append(fname)
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 8e6ee68

Please sign in to comment.