[project @ 1997-09-30 10:26:40 by simonm]
[ghc-hetmet.git] / ghc / driver / ghc-consist.lprl
index 59d220e..31bcdf4 100644 (file)
@@ -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")