Plugin dependency information is stored separately
We need to store the used plugins so that we recompile a module when a plugin that it uses is recompiled. However, storing the `ModuleName`s of the plugins used by a module in the `dep_mods` field made the rest of GHC think that they belong in the HPT, causing at least the issues reported in #15234 We therefor store the `ModuleName`s of the plugins in a new field, `dep_plgins`, which is only used the the recompilation logic. Reviewers: mpickering, bgamari Reviewed By: mpickering, bgamari Subscribers: alpmestan, rwbarton, thomie, carter GHC Trac Issues: #15234 Differential Revision: https://phabricator.haskell.org/D4937 (cherry picked from commit 52065e95)
Showing
- compiler/deSugar/Desugar.hs 3 additions, 2 deletionscompiler/deSugar/Desugar.hs
- compiler/deSugar/DsUsage.hs 99 additions, 4 deletionscompiler/deSugar/DsUsage.hs
- compiler/iface/MkIface.hs 7 additions, 4 deletionscompiler/iface/MkIface.hs
- compiler/main/DynamicLoading.hs 6 additions, 5 deletionscompiler/main/DynamicLoading.hs
- compiler/main/HscTypes.hs 7 additions, 2 deletionscompiler/main/HscTypes.hs
- compiler/main/Plugins.hs 2 additions, 2 deletionscompiler/main/Plugins.hs
- testsuite/tests/plugins/Makefile 7 additions, 0 deletionstestsuite/tests/plugins/Makefile
- testsuite/tests/plugins/all.T 6 additions, 0 deletionstestsuite/tests/plugins/all.T
- testsuite/tests/plugins/plugin-recomp-change.stderr 6 additions, 0 deletionstestsuite/tests/plugins/plugin-recomp-change.stderr
- testsuite/tests/plugins/plugin-recomp/Common.hs 5 additions, 0 deletionstestsuite/tests/plugins/plugin-recomp/Common.hs
- testsuite/tests/plugins/plugin-recomp/Makefile 4 additions, 3 deletionstestsuite/tests/plugins/plugin-recomp/Makefile
Loading
Please register or sign in to comment