diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-09-27 16:24:57 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-09-30 19:42:19 -0400 |
commit | 94f3ce7e4a4e0c952687eef511aa68cc38b1ad0d (patch) | |
tree | 7581c4ed9e50c473f8e6f2be5130c3739bad0d69 /compiler/GHC/Platform | |
parent | adc41a7747a72a526dd30e63afb03c61cee13e9a (diff) | |
download | haskell-94f3ce7e4a4e0c952687eef511aa68cc38b1ad0d.tar.gz |
Recompilation: Handle -plugin-package correctly
If a plugins was specified using the -plugin-package-(id) flag then the
module it applied to was always recompiled.
The recompilation checker was previously using `findImportedModule`,
which looked for packages in the HPT and then in the package database
but only for modules specified using `-package`.
The correct lookup function for plugins is `findPluginModule`, therefore
we check normal imports with `findImportedModule` and plugins with
`findPluginModule`.
Fixes #20417
Diffstat (limited to 'compiler/GHC/Platform')
0 files changed, 0 insertions, 0 deletions