Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 31f9bbf

Browse files
committed
MSVC: Substitute $(top_builddir) in REGRESS_OPTS.
Commit d7cdf6e introduced a usage thereof. Back-patch to 9.0, like that commit.
1 parent 2704898 commit 31f9bbf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tools/msvc/vcregress.pl

+7-3
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,13 @@ sub fetchRegressOpts
331331
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
332332
{
333333

334-
# ignore options that use makefile variables - can't handle those
335-
# ignore anything that isn't an option staring with --
336-
@opts = grep { $_ !~ /\$\(/ && $_ =~ /^--/ } split(/\s+/, $1);
334+
# Substitute known Makefile variables, then ignore options that retain
335+
# an unhandled variable reference. Ignore anything that isn't an
336+
# option starting with "--".
337+
@opts = grep {
338+
s/\Q$(top_builddir)\E/\"$topdir\"/;
339+
$_ !~ /\$\(/ && $_ =~ /^--/
340+
} split(/\s+/, $1);
337341
}
338342
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
339343
{

0 commit comments

Comments
 (0)