Skip to content
Snippets Groups Projects
Commit aef7d513 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

driver: Fix interaction of -Wunused-packages and reexported-modules

Spurious warnings were previously emitted if an import came from a
reexport due to how -Wunused-packages were implemented. Removing the
dependency would cause compilation to fail.

The fix is to reimplement the warning a bit more directly, by searching
for which package each import comes from using the normal module finding
functions rather than consulting the EPS. This has the advantage that
the check could be performed at any time after downsweep rather than
also relying on a populated EPS.

Fixes #19518 and #19777
parent a181313e
No related branches found
No related tags found
No related merge requests found
Showing
with 142 additions and 18 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment