We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810f0d2 commit 98d3a7bCopy full SHA for 98d3a7b
src/tools/msvc/vcregress.pl
@@ -323,9 +323,13 @@ sub fetchRegressOpts
323
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
324
{
325
326
- # ignore options that use makefile variables - can't handle those
327
- # ignore anything that isn't an option staring with --
328
- @opts = grep { $_ !~ /\$\(/ && $_ =~ /^--/ } split(/\s+/, $1);
+ # Substitute known Makefile variables, then ignore options that retain
+ # an unhandled variable reference. Ignore anything that isn't an
+ # option starting with "--".
329
+ @opts = grep {
330
+ s/\Q$(top_builddir)\E/\"$topdir\"/;
331
+ $_ !~ /\$\(/ && $_ =~ /^--/
332
+ } split(/\s+/, $1);
333
}
334
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
335
0 commit comments