projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a24ede8
)
[project @ 2003-08-20 15:11:06 by simonmar]
author
simonmar
<unknown>
Wed, 20 Aug 2003 15:11:06 +0000
(15:11 +0000)
committer
simonmar
<unknown>
Wed, 20 Aug 2003 15:11:06 +0000
(15:11 +0000)
After removing temp files, reset the list of temporary files to empty.
ghc/compiler/main/SysTools.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/SysTools.lhs
b/ghc/compiler/main/SysTools.lhs
index
6c9f2a5
..
2e5d8de
100644
(file)
--- a/
ghc/compiler/main/SysTools.lhs
+++ b/
ghc/compiler/main/SysTools.lhs
@@
-651,8
+651,10
@@
setTmpDir dir = writeIORef v_TmpDir (canonicalise dir)
#endif
cleanTempFiles :: Int -> IO ()
-cleanTempFiles verb = do fs <- readIORef v_FilesToClean
- removeTmpFiles verb fs
+cleanTempFiles verb
+ = do fs <- readIORef v_FilesToClean
+ removeTmpFiles verb fs
+ writeIORef v_FilesToClean []
cleanTempFilesExcept :: Int -> [FilePath] -> IO ()
cleanTempFilesExcept verb dont_delete