Commit eb86e5a2 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Use </> rather than ++ "/"

This stops us generating paths like
    c:\foo\/ghc460_0/ghc460_0.o
which windres doesn't understand.
parent af2280a7
......@@ -480,7 +480,7 @@ newTempName :: DynFlags -> Suffix -> IO FilePath
newTempName dflags extn
= do d <- getTempDir dflags
x <- getProcessID
findTempName (d ++ "/ghc" ++ show x ++ "_") 0
findTempName (d </> "ghc" ++ show x ++ "_") 0
where
findTempName :: FilePath -> Integer -> IO FilePath
findTempName prefix x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment