diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-12-26 09:41:10 +0000 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2023-01-25 23:01:09 -0500 |
commit | 330035914aad4787edaf51a6296ec7597ef6081a (patch) | |
tree | 045726b71035ab61a0529a20af96581d514f4eea /compiler | |
parent | 8151ec16b018529c9c5ac19e1d45c702111d1dae (diff) | |
download | haskell-330035914aad4787edaf51a6296ec7597ef6081a.tar.gz |
Augment target filepath by working directory when checking if module satisfies target
This fixes a spurious warning in -Wmissing-home-modules.
This is a simple oversight where when looking for the target in the
first place we augment the search by the -working-directory flag but
then fail to do so when checking this warning.
Fixes #22676
(cherry picked from commit 8a47f4e0c1b8e91edef635e6ba05f65df62a416f)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Driver/Make.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Make.hs b/compiler/GHC/Driver/Make.hs index 0d1cf892bd..999bed68b5 100644 --- a/compiler/GHC/Driver/Make.hs +++ b/compiler/GHC/Driver/Make.hs @@ -347,7 +347,7 @@ warnMissingHomeModules dflags targets mod_graph = TargetFile target_file _ | Just mod_file <- ml_hs_file (ms_location mod) -> - target_file == mod_file || + augmentByWorkingDirectory dflags target_file == mod_file || -- Don't warn on B.hs-boot if B.hs is specified (#16551) addBootSuffix target_file == mod_file || |