We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2704898 commit 31f9bbfCopy full SHA for 31f9bbf
src/tools/msvc/vcregress.pl
@@ -331,9 +331,13 @@ sub fetchRegressOpts
331
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
332
{
333
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);
+ # Substitute known Makefile variables, then ignore options that retain
+ # an unhandled variable reference. Ignore anything that isn't an
+ # option starting with "--".
337
+ @opts = grep {
338
+ s/\Q$(top_builddir)\E/\"$topdir\"/;
339
+ $_ !~ /\$\(/ && $_ =~ /^--/
340
+ } split(/\s+/, $1);
341
}
342
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
343
0 commit comments