Skip to content

driver: Use correct DynFlags when emitting unecessary source pragma warning

Matthew Pickering requested to merge wip/t24631 into master

We were using the global DynFlags in order to determine whether to emit the unecessary source imports warning, instead we should use the per-module DynFlags so that local GHC_OPTIONS are honoured.

Fixes #24631

Merge request reports