Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
0d414f05
Commit
0d414f05
authored
Nov 01, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new_dep_solver.py: fix regression for system libraries.
parent
eab2b9bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
new_dep_solver.py
hdlmake/sourcefiles/new_dep_solver.py
+5
-5
No files found.
hdlmake/sourcefiles/new_dep_solver.py
View file @
0d414f05
...
...
@@ -66,12 +66,12 @@ def solve(fileset, standard_libs=None):
# logging.info("INVESTIGATED FILE: %s" % investigated_file)
for
rel
in
investigated_file
.
requires
:
# logging.info("- relation: %s" % rel)
# logging.info("- 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.
investigated_file
.
depends_on
.
add
(
dep_file
)
satisfied_by
.
add
(
dep_file
)
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."
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment