Skip to content

Commit 48aa003

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 3c5232a commit 48aa003

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tools/msvc/vcregress.pl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,13 @@ sub fetchRegressOpts
249249
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
250250
{
251251

252-
# ignore options that use makefile variables - can't handle those
253-
# ignore anything that isn't an option staring with --
254-
@opts = grep { $_ !~ /\$\(/ && $_ =~ /^--/ } split(/\s+/,$1);
252+
# Substitute known Makefile variables, then ignore options that retain
253+
# an unhandled variable reference. Ignore anything that isn't an
254+
# option starting with "--".
255+
@opts = grep {
256+
s/\Q$(top_builddir)\E/\"$topdir\"/;
257+
$_ !~ /\$\(/ && $_ =~ /^--/
258+
} split(/\s+/, $1);
255259
}
256260
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
257261
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy