From 35d19a9a37c245ff7c640743f37b8df227fd24dc Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Mon, 14 Jul 2014 14:07:27 -0400 Subject: MSVC: Process Makefile line continuations more like "make" does. Unlike "make" itself, the MSVC build process recognized a continuation even with whitespace after the backslash. (Due to a typo, some code sites accepted the letter "s" instead of whitespace). Also, it would consume any number of newlines following a single backslash. This is mere cleanup; those behaviors were unlikely to cause bugs. --- src/tools/msvc/Project.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/msvc/Project.pm') diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 9ca5b1f13ad..f343b2b9b8c 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -193,7 +193,7 @@ sub AddDir my $mf = <$MF>; close($MF); - $mf =~ s{\\\s*[\r\n]+}{}mg; + $mf =~ s{\\\r?\n}{}g; if ($mf =~ m{^(?:SUB)?DIRS[^=]*=\s*(.*)$}mg) { foreach my $subdir (split /\s+/, $1) -- cgit v1.2.3