summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-05-18 17:20:15 +0000
committerIan Lynagh <igloo@earth.li>2010-05-18 17:20:15 +0000
commit40f270cf91cead48e5d7ebbdd13ab5ca52e4c351 (patch)
tree84f4a67812ecf333d12d444fa7460519bc2fb430 /compiler
parentf9b4bc220a684a970a58dafa9e57d665d29b4121 (diff)
downloadhaskell-40f270cf91cead48e5d7ebbdd13ab5ca52e4c351.tar.gz
Change another / to </> to avoid building paths containing \/
This will hopefully fix #2889.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/SysTools.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
index ac1941d771..c479a66ab5 100644
--- a/compiler/main/SysTools.lhs
+++ b/compiler/main/SysTools.lhs
@@ -500,7 +500,7 @@ getTempDir dflags@(DynFlags{tmpDir=tmp_dir})
case lookupFM mapping tmp_dir of
Nothing ->
do x <- getProcessID
- let prefix = tmp_dir ++ "/ghc" ++ show x ++ "_"
+ let prefix = tmp_dir </> "ghc" ++ show x ++ "_"
let
mkTempDir :: Integer -> IO FilePath
mkTempDir x