Add work prefix when looking for the relation providing top_module

parent 775fa2c0
......@@ -132,7 +132,8 @@ def make_dependency_set(fileset, top_level_entity):
assert isinstance(fileset, SourceFileSet)
fset = fileset.filter(DepFile)
# Find the file that provides the named top level entity
top_rel = DepRelation(top_level_entity,DepRelation.PROVIDE, DepRelation.ENTITY)
# top_rel = DepRelation(top_level_entity,DepRelation.PROVIDE, DepRelation.ENTITY)
top_rel = DepRelation("%s.%s" % ("work", top_level_entity), DepRelation.PROVIDE, DepRelation.ENTITY)
top_file = None
for chk_file in fset:
for rel in chk_file.rels:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment