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:
7362ac3
)
[project @ 2001-08-23 12:50:13 by rrt]
author
rrt
<unknown>
Thu, 23 Aug 2001 12:50:13 +0000
(12:50 +0000)
committer
rrt
<unknown>
Thu, 23 Aug 2001 12:50:13 +0000
(12:50 +0000)
On second thoughts, strip either a backslash or a slash, as if we read
an environment variable, we may well get a slash in the path; if we
get a result from GetTempPath, it'll probably have a backslash.
ghc/compiler/main/SysTools.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/SysTools.lhs
b/ghc/compiler/main/SysTools.lhs
index
fee219f
..
ffa77e9
100644
(file)
--- a/
ghc/compiler/main/SysTools.lhs
+++ b/
ghc/compiler/main/SysTools.lhs
@@
-277,6
+277,7
@@
initSysTools minusB_args
-- we only do this once).
tmpdir =
case last tdir of
+ '/' -> init tdir
'\\' -> init tdir
_ -> tdir
setTmpDir tmpdir