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 3c5232a commit 48aa003Copy full SHA for 48aa003
src/tools/msvc/vcregress.pl
@@ -249,9 +249,13 @@ sub fetchRegressOpts
249
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
250
{
251
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);
+ # Substitute known Makefile variables, then ignore options that retain
+ # an unhandled variable reference. Ignore anything that isn't an
+ # option starting with "--".
255
+ @opts = grep {
256
+ s/\Q$(top_builddir)\E/\"$topdir\"/;
257
+ $_ !~ /\$\(/ && $_ =~ /^--/
258
+ } split(/\s+/, $1);
259
}
260
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
261
0 commit comments