diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-12-26 09:41:10 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-24 05:37:52 -0500 |
commit | 7bfb30f92f5e21a8aca58068dc970040130433c6 (patch) | |
tree | 712f5ade2aec3d9dab981ad0486b02c90f652c97 /compiler/GHC | |
parent | 1d1dd3fbfafdb9705076d4c587d5cf47e33b7640 (diff) | |
download | haskell-7bfb30f92f5e21a8aca58068dc970040130433c6.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
Diffstat (limited to 'compiler/GHC')
-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 || |