diff options
author | Noah Misch <noah@leadboat.com> | 2014-07-14 14:07:27 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2014-07-14 14:07:27 -0400 |
commit | 35d19a9a37c245ff7c640743f37b8df227fd24dc (patch) | |
tree | 1c6583feb9340b8b2ad75ebbbf2cf915b6793f6f /src/tools/msvc/Project.pm | |
parent | 91f03ba5cf88b393bf2509f3f00dd00437a5bd54 (diff) | |
download | postgresql-35d19a9a37c245ff7c640743f37b8df227fd24dc.tar.gz postgresql-35d19a9a37c245ff7c640743f37b8df227fd24dc.zip |
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.pm | 2 |
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) |