[project @ 2002-08-27 09:34:20 by simonmar]
authorsimonmar <unknown>
Tue, 27 Aug 2002 09:34:20 +0000 (09:34 +0000)
committersimonmar <unknown>
Tue, 27 Aug 2002 09:34:20 +0000 (09:34 +0000)
Fix a bug in the cleaning up of temporary files: we were wrongly
cleaning the temporary pre-processed source files for stable modules,
with the result that the compiler would panic the next time they were
required.

Reported ages ago by: Hal Duame.

MERGE TO STABLE

ghc/compiler/compMan/CompManager.lhs

index 449801c..abe2bf7 100644 (file)
@@ -610,7 +610,7 @@ cmLoadModules cmstate1 dflags mg2unsorted
 
        -- clean up between compilations
        let cleanup = cleanTempFilesExcept verb 
-                         (ppFilesFromSummaries (flattenSCCs upsweep_these))
+                         (ppFilesFromSummaries (flattenSCCs mg2))
 
         (upsweep_complete_success, threaded3, modsUpswept, newLis)
            <- upsweep_mods ghci_mode dflags valid_linkables reachable_from