Commit 0d414f05 authored by Tristan Gingold's avatar Tristan Gingold fix regression for system libraries.

parent eab2b9bc
......@@ -66,12 +66,12 @@ def solve(fileset, standard_libs=None):
#"INVESTIGATED FILE: %s" % investigated_file)
for rel in investigated_file.requires:
#"- relation: %s" % rel)
#"- direction: %s" % rel.direction)
# Only analyze USE relations, we are looking for dependencies
satisfied_by = set()
for dep_file in fset:
if dep_file.satisfies(rel):
if dep_file is not investigated_file:
# A file cannot depends on itself.
if len(satisfied_by) > 1:
......@@ -84,10 +84,10 @@ def solve(fileset, standard_libs=None):
elif len(satisfied_by) == 0:
# if relation is a USE PACKAGE, check against
# the standard libs provided by the tool HDL compiler
required_lib = rel.obj_name.split('.')[0]
if (not standard_libs is None and
required_lib in standard_libs and
rel.rel_type is DepRelation.PACKAGE):
required_lib = rel.lib_name
if (standard_libs is not None
and rel.rel_type is DepRelation.PACKAGE
and required_lib in standard_libs):
logging.debug("Not satisfied relation %s in %s will "
"be covered by the target compiler "
"standard libs.",
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