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:
16e4ce4
)
[project @ 2003-06-24 08:03:15 by simonpj]
author
simonpj
<unknown>
Tue, 24 Jun 2003 08:03:15 +0000
(08:03 +0000)
committer
simonpj
<unknown>
Tue, 24 Jun 2003 08:03:15 +0000
(08:03 +0000)
comments only
ghc/compiler/main/SysTools.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/SysTools.lhs
b/ghc/compiler/main/SysTools.lhs
index
d8eb0fe
..
6f73313
100644
(file)
--- a/
ghc/compiler/main/SysTools.lhs
+++ b/
ghc/compiler/main/SysTools.lhs
@@
-623,9
+623,11
@@
setTmpDir dir = writeIORef v_TmpDir (canonicalise dir)
#if !defined(mingw32_HOST_OS)
canonicalise p = normalisePath p
#else
#if !defined(mingw32_HOST_OS)
canonicalise p = normalisePath p
#else
- -- canonicalisation of temp path under win32 is a bit more
- -- involved: strip trailing slash, deal with /cygdrive-paths,
- -- normalise slashes.
+ -- Canonicalisation of temp path under win32 is a bit more
+ -- involved: (a) strip trailing slash,
+ -- (b) normalise slashes
+ -- (c) just in case, if there is a prefix /cygdrive/x/, change to x:
+ --
canonicalise path = normalisePath (xltCygdrive (removeTrailingSlash path))
-- if we're operating under cygwin, and TMP/TEMP is of
canonicalise path = normalisePath (xltCygdrive (removeTrailingSlash path))
-- if we're operating under cygwin, and TMP/TEMP is of