From: sof Date: Tue, 14 Mar 2000 01:57:18 +0000 (+0000) Subject: [project @ 2000-03-14 01:57:18 by sof] X-Git-Tag: Approximately_9120_patches~4990 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=bbc5260c1218d6badcb94d60d17f0fd1afc1190e;p=ghc-hetmet.git [project @ 2000-03-14 01:57:18 by sof] mingw32: do as for cygwin platforms & default the name of the generated binary to main.exe if -o <...> isn't given. --- diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 3086d14..d6bf89f 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -1860,7 +1860,8 @@ sub runLinker local($lnkr) = ( $Lnkr ) ? $Lnkr : $CcRegd; if ( ($Specific_output_file eq '') && - ($TargetPlatform eq 'i386-unknown-cygwin32') ) { + ( ($TargetPlatform eq 'i386-unknown-cygwin32') || + ($TargetPlatform eq 'i386-unknown-mingw32')) ) { $Specific_output_file = 'main.exe'; print STDERR "Output file not specified, defaulting to \"main.exe\"\n"; }