Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch2014-07-14 18:07:27 +0000
committerNoah Misch2014-07-14 18:07:27 +0000
commit35d19a9a37c245ff7c640743f37b8df227fd24dc (patch)
tree1c6583feb9340b8b2ad75ebbbf2cf915b6793f6f /src/tools/msvc/Project.pm
parent91f03ba5cf88b393bf2509f3f00dd00437a5bd54 (diff)
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.
Diffstat (limited to 'src/tools/msvc/Project.pm')
-rw-r--r--src/tools/msvc/Project.pm2
1 files changed, 1 insertions, 1 deletions
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)