Skip to content

Commit e5e5884

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

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,9 @@ programsMonitorFiles progdb =
989989
monitorFileSearchPath
990990
(programMonitorFiles prog)
991991
(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.

changelog.d/pr-10853

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
synopsis: Monitor `ghc.shim` on Windows
2+
packages: cabal-install
3+
prs: #10853
4+
issues: #10850
5+
6+
description: {
7+
8+
- On Linux it is the `ghc` executable that changes when changing compiler
9+
version in GHCup (the symlink points to a new location) but on Windows it is
10+
the companion `ghc.shim` file that changes. This file is now also monitored
11+
for changes to trigger rebuilds.
12+
13+
}

0 commit comments

Comments
 (0)