Skip to content

Commit 4045609

Browse files
committed
Monitor also ghc.shim file on Windows
1 parent e38a514 commit 4045609

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cabal-install/src/Distribution/Client/ProjectPlanning.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,10 @@ programsMonitorFiles progdb =
988988
, monitor <-
989989
monitorFileSearchPath
990990
(programMonitorFiles prog)
991-
(programPath prog)
991+
(programPath prog) ++
992+
if programId prog == "ghc" && buildOS == Windows
993+
then [monitorFile $ programPath prog -<.> "shim"]
994+
else []
992995
]
993996

994997
-- | Select the bits of a 'ProgramDb' to monitor for value changes.

0 commit comments

Comments
 (0)