X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Fmain%2FGHC.hs;h=9e2b3068e623dddbf6c7ea10bc2e92800c9ac503;hb=f391c6e6b04055eac8bc878af31042e103387530;hp=aef6b9bb0bd7c95e9c158fc60ba4e814e1f2b146;hpb=ca8d50e001ffa64cefac0231f1cdbdff19b47e8c;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index aef6b9b..9e2b306 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -2342,8 +2342,11 @@ cyclicModuleErr ms -- | Inform GHC that the working directory has changed. GHC will flush -- its cache of module locations, since it may no longer be valid. --- Note: if you change the working directory, you should also unload --- the current program (set targets to empty, followed by load). +-- +-- Note: Before changing the working directory make sure all threads running +-- in the same session have stopped. If you change the working directory, +-- you should also unload the current program (set targets to empty, +-- followed by load). workingDirectoryChanged :: GhcMonad m => m () workingDirectoryChanged = withSession $ (liftIO . flushFinderCaches)