Skip to content

Commit

Permalink
Account for Coq => Stdlib replacement (#209)
Browse files Browse the repository at this point in the history
Compatibility with coq/coq#19310
  • Loading branch information
JasonGross authored Jul 17, 2024
1 parent 4092d0d commit fc4c213
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions coq_tools/import_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@ def filename_of_lib_helper(lib, libnames, non_recursive_libnames, ext):
filenames = list(
filenames_of_lib_helper(lib, libnames, non_recursive_libnames, ext)
)
# kludge for https://github.com/coq/coq/pull/19310
if lib.startswith("Stdlib.") and not filenames:
filenames = list(
filenames_of_lib_helper("Coq." + lib[len("Stdlib."):], libnames, non_recursive_libnames, ext)
)
if filenames:
DEFAULT_LOG(
"WARNING: Using Coq in place of Stdlib when resolving %s to %s."
% (lib, ", ".join(sorted(set(filenames)))),
level=LOG_ALWAYS,
)
local_filenames = list(
local_filenames_of_lib_helper(lib, libnames, non_recursive_libnames, ext)
)
Expand Down

0 comments on commit fc4c213

Please sign in to comment.