projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-10-29 18:13:52 by krasimir]
[ghc-hetmet.git]
/
ghc
/
compiler
/
main
/
GHC.hs
diff --git
a/ghc/compiler/main/GHC.hs
b/ghc/compiler/main/GHC.hs
index
2ff5229
..
fec3dfc
100644
(file)
--- a/
ghc/compiler/main/GHC.hs
+++ b/
ghc/compiler/main/GHC.hs
@@
-365,7
+365,11
@@
guessOutputFile s = modifySession s $ \env ->
let isMain = (== mainModIs dflags) . ms_mod
[ms] <- return (filter isMain mod_graph)
ml_hs_file (ms_location ms)
let isMain = (== mainModIs dflags) . ms_mod
[ms] <- return (filter isMain mod_graph)
ml_hs_file (ms_location ms)
+#if defined(mingw32_HOST_OS)
+ guessedName = fmap (\fname -> basenameOf fname `joinFileExt` "exe") mainModuleSrcPath
+#else
guessedName = fmap basenameOf mainModuleSrcPath
guessedName = fmap basenameOf mainModuleSrcPath
+#endif
in
case outputFile dflags of
Just _ -> env
in
case outputFile dflags of
Just _ -> env