Skip to content

Commit

Permalink
deplist.py: support dependency hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
skosukhin committed Apr 26, 2024
1 parent b037503 commit 88b5742
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion deplist.config.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--inc-oo
--check-colour yellow
# Check whether the dependency graph is acyclic:
--check-cycles
Expand Down
4 changes: 2 additions & 2 deletions mkhelper.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ sanitize-mod-proxies:
# Dependency generation rule for undetectable Fortran dependencies:
extra_f90.d: mkhelper.mk
$(silent_DEPGEN):;{ \
echo 'src/program/main.o:| src/program/implicit_external.o'; \
echo 'src/program/main.o:| src/modules/submo_test_submodule.o'; \
echo '#-hint src/program/main.o: src/program/implicit_external.o'; \
echo '#-hint src/program/main.o: src/modules/submo_test_submodule.o'; \
} >$@

# Configure delayed bundled libraries:
Expand Down
5 changes: 3 additions & 2 deletions mkhelper/deplist.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@
import sys

_re_rule = re.compile(
r"^(?P<hint>#-hint )?"
# targets
r"^[ ]*(?P<targets>[-+\w./]+(?:[ ]+[-+\w./]+)*)[ ]*"
r"[ ]*(?P<targets>[-+\w./]+(?:[ ]+[-+\w./]+)*)[ ]*"
# normal prerequisites
r":(?:[ ]*(?P<normal>[-+\w./]+(?:[ ]+[-+\w./]+)*))?[ ]*"
r":[ ]*(?P<normal>[-+\w./]+(?:[ ]+[-+\w./]+)*)?[ ]*"
# order-only prerequisites
r"(?:\|[ ]*(?P<order_only>[-+\w./]+(?:[ ]+[-+\w./]+)*))?"
)
Expand Down

0 comments on commit 88b5742

Please sign in to comment.