X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2Fghc-consist.lprl;h=31bcdf453f70a2b495d3c60a93e6fce19c31efd7;hb=85bc313bb8dad50e96723a776634fc6fdf2f0b8c;hp=22abeca6acded84255446d170740b38a6a5975f7;hpb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;p=ghc-hetmet.git diff --git a/ghc/driver/ghc-consist.lprl b/ghc/driver/ghc-consist.lprl index 22abeca..31bcdf4 100644 --- a/ghc/driver/ghc-consist.lprl +++ b/ghc/driver/ghc-consist.lprl @@ -7,10 +7,14 @@ \begin{code} sub chk_consistency_info { local($executable) = @_; - + local($major_version, $minor_version); local($phase, $infile, $opts); + # append .exe if it's not there under cygwin32 + $executable = "${executable}.exe" if $TargetPlatform eq 'i386-unknown-cygwin32' && + $executable !~ /\.exe$/ ; + print STDERR "Checking consistency of: $executable\n" if $Verbose; &tidy_up_and_die(1, "Panic: no such executable: $executable\n") @@ -38,7 +42,7 @@ sub chk_consistency_info { print STDERR "$Pgm: consistency warning: minor version not $HsC_minor_version:\n$_\n" if $minor_version != $HsC_minor_version; $Status++, - print STDERR "$Pgm: consistency error: not options $HsC_consist_options:\n$_\n" + print STDERR "$Pgm: consistency error: not options $opts -- $HsC_consist_options:\n$_\n" if $opts ne $HsC_consist_options; } else { # phase is cc ...