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/vcregress.pl | |
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/vcregress.pl')
-rw-r--r-- | src/tools/msvc/vcregress.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 2c8cd50a2f7..39698ee7ee6 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -358,7 +358,7 @@ sub fetchTests close($handle); my $t = ""; - $m =~ s/\\[\r\n]*//gs; + $m =~ s{\\\r?\n}{}g; if ($m =~ /^REGRESS\s*=\s*(.*)$/gm) { $t = $1; |