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:
45c92e9
)
Make the matching of the filename ghc.exe case insensitive, fixes bug #2603
author
Neil Mitchell
<ndmitchell@gmail.com>
Tue, 16 Sep 2008 16:03:11 +0000
(16:03 +0000)
committer
Neil Mitchell
<ndmitchell@gmail.com>
Tue, 16 Sep 2008 16:03:11 +0000
(16:03 +0000)
compiler/main/SysTools.lhs
patch
|
blob
|
history
diff --git
a/compiler/main/SysTools.lhs
b/compiler/main/SysTools.lhs
index
7b9ac1d
..
828530b
100644
(file)
--- a/
compiler/main/SysTools.lhs
+++ b/
compiler/main/SysTools.lhs
@@
-844,7
+844,7
@@
getBaseDir = do let len = (2048::Int) -- plenty, PATH_MAX is 512 under Win32.
return (Just (rootDir s))
where
rootDir s = case splitFileName $ normalise s of
- (d, "ghc.exe") ->
+ (d, ghc_exe) | map toLower ghc_exe == "ghc.exe" ->
case splitFileName $ takeDirectory d of
-- installed ghc.exe is in $topdir/bin/ghc.exe
(d', "bin") -> takeDirectory d'