driver: Ensure we run driverPlugin for staticPlugins (#25217)
driverPlugins are only run when the plugin state changes. This meant they were never run for static plugins, as their state never changes. We need to keep track of whether a static plugin has been initialised to ensure we run static driver plugins at least once. This necessitates an additional field in the `StaticPlugin` constructor as this state has to be bundled with the plugin itself, as static plugins have no name/identifier we can use to otherwise reference them
parent
c50d29be
No related branches found
No related tags found
Pipeline #100704 canceled
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Stage: deploy
Showing
- compiler/GHC/Driver/Plugins.hs 2 additions, 0 deletionscompiler/GHC/Driver/Plugins.hs
- compiler/GHC/Runtime/Loader.hs 3 additions, 2 deletionscompiler/GHC/Runtime/Loader.hs
- testsuite/tests/plugins/T25217.hs 42 additions, 0 deletionstestsuite/tests/plugins/T25217.hs
- testsuite/tests/plugins/T25217.stdout 3 additions, 0 deletionstestsuite/tests/plugins/T25217.stdout
- testsuite/tests/plugins/all.T 9 additions, 0 deletionstestsuite/tests/plugins/all.T
- testsuite/tests/plugins/static-plugins.hs 5 additions, 5 deletionstestsuite/tests/plugins/static-plugins.hs
testsuite/tests/plugins/T25217.hs
0 → 100644
testsuite/tests/plugins/T25217.stdout
0 → 100644