X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FDriverMkDepend.hs;h=901b3bb7cee028ba2ba61dbd52aabe3186ee442e;hb=d04e338c3b78fb76341e374bf776b14cbca78bd1;hp=ffafccaffb0fcad6b05d524f0516c0be511226d9;hpb=dde771de24f0e02d00867e79f7c68e526475d7c6;p=ghc-hetmet.git diff --git a/compiler/main/DriverMkDepend.hs b/compiler/main/DriverMkDepend.hs index ffafcca..901b3bb 100644 --- a/compiler/main/DriverMkDepend.hs +++ b/compiler/main/DriverMkDepend.hs @@ -22,7 +22,7 @@ module DriverMkDepend ( import qualified GHC import GHC ( Session, ModSummary(..) ) import DynFlags -import Util ( escapeSpaces ) +import Util import HscTypes ( HscEnv, IsBootInterface, msObjFilePath, msHsFilePath ) import SysTools ( newTempName ) import qualified SysTools @@ -248,10 +248,10 @@ findDependency hsc_env src imp is_boot include_pkg_deps ----------------------------- writeDependency :: Handle -> [FilePath] -> FilePath -> IO () -- (writeDependency h [t1,t2] dep) writes to handle h the dependency --- t1 t2 : dep +-- t1 t2 : dep writeDependency hdl targets dep - = hPutStrLn hdl (unwords (map escapeSpaces targets) ++ " : " - ++ escapeSpaces dep) + = hPutStrLn hdl (unwords (map forOutput targets) ++ " : " ++ forOutput dep) + where forOutput = escapeSpaces . reslash Forwards . normalise ----------------------------- insertSuffixes