[project @ 2001-10-16 11:20:58 by rrt]
authorrrt <unknown>
Tue, 16 Oct 2001 11:20:58 +0000 (11:20 +0000)
committerrrt <unknown>
Tue, 16 Oct 2001 11:20:58 +0000 (11:20 +0000)
Strip out \r on Windows. This should not be necessary as Perl should
read in text mode on a text mounted volume (under Cygwin).

ghc/driver/split/ghc-split.lprl

index 8071aa5..66f2be6 100644 (file)
@@ -139,6 +139,7 @@ sub ReadTMPIUpToAMarker {
     print STDERR "### BLOCK:$count:\n$str" if $Dump_asm_splitting_info;
 
     # return str
+    $str =~ tr/\r//d if $TargetPlatform =~ /-mingw32$/;
     $str;
 }
 \end{code}