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 6306d07 commit f12976aCopy full SHA for f12976a
src/tools/msvc/vcregress.pl
@@ -326,9 +326,13 @@ sub fetchRegressOpts
326
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
327
{
328
329
- # ignore options that use makefile variables - can't handle those
330
- # ignore anything that isn't an option staring with --
331
- @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 "--".
332
+ @opts = grep {
333
+ s/\Q$(top_builddir)\E/\"$topdir\"/;
334
+ $_ !~ /\$\(/ && $_ =~ /^--/
335
+ } split(/\s+/, $1);
336
}
337
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
338
0 commit comments