[project @ 1997-05-19 05:59:28 by sof]
[ghc-hetmet.git] / ghc / driver / ghc-consist.lprl
index 072c6c6..31bcdf4 100644 (file)
@@ -11,7 +11,9 @@ sub chk_consistency_info {
     local($major_version, $minor_version);
     local($phase, $infile, $opts);
 
-    $executable = "${executable}.exe" if $TargetPlatform eq 'i386-unknown-cygwin32';
+    # 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;