Thanks to visit codestin.com Credit goes to github.com
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 30d6a98 commit 44acd17Copy full SHA for 44acd17
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