Hi Sigbjorn.
| Re: -o behaviour -- some releases ago, ghc-win32 mapped
| the compilation of Main.hs to main.exe in the absence of a
| user-supplied -o option. That change doesn't appear to have
| stuck, as it has been back to "a.out" for quite a while now.
| Fix-worthy?
|
| Appending an .exe extension if the filename doesn't already have
| an extension is quite sensible, I think.
I just put this into HEAD:
$ cvs diff main/DriverPipeline.hs
Enter passphrase for key '/home/miketh/.ssh/id_dsa':
Index: main/DriverPipeline.hs
===================================================================
RCS file: /home/cvs/root/fptools/ghc/compiler/main/DriverPipeline.hs,v
retrieving revision 1.167
diff -r1.167 DriverPipeline.hs
996a997,999
> #if defined(mingw32_HOST_OS)
> let output_fn = case o_file of { Just s -> s; Nothing -> "main.exe"; }
> #else
997a1001
> #endif
If nobody objects to this unsophisticated solution by tomorrow I'll move it
to the 6.2 branch.
Cheers
Mike Thomas.
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc