X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FGenLibDeps.pl;h=74eedd3383bcac469dd2252a04e9de6a9d073bc9;hb=8a6ccb5f73cf2e490faa181ad6662633b3ee38df;hp=16aed89474895983f348a5b4d80cf4f3eab53165;hpb=8330b0e5d409e2bce093c680348459f24d8b0932;p=oota-llvm.git diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl index 16aed894748..74eedd3383b 100755 --- a/utils/GenLibDeps.pl +++ b/utils/GenLibDeps.pl @@ -62,7 +62,8 @@ foreach my $lib (@libs ) { while () { next if (! / [ABCDGRST] /); s/^[^ ]* [ABCDGRST] //; - chomp($_); + s/\015?\012//; # not sure if is in binmode and uses LF or CRLF. + # this strips both LF and CRLF. $libdefs{$_} = $lib; } close DEFS; @@ -74,7 +75,8 @@ foreach my $obj (@objs ) { while () { next if (! / [ABCDGRST] /); s/^[^ ]* [ABCDGRST] //; - chomp($_); + s/\015?\012//; # not sure if is in binmode and uses LF or CRLF. + # this strips both LF and CRLF. $objdefs{$_} = $obj; } close DEFS;