mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user