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 9dc2a3f commit d5e70c7Copy full SHA for d5e70c7
src/tools/msvc/vcregress.pl
@@ -222,9 +222,13 @@ sub fetchRegressOpts
222
if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m)
223
{
224
225
- # ignore options that use makefile variables - can't handle those
226
- # ignore anything that isn't an option staring with --
227
- @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 "--".
228
+ @opts = grep {
229
+ s/\Q$(top_builddir)\E/\"$topdir\"/;
230
+ $_ !~ /\$\(/ && $_ =~ /^--/
231
+ } split(/\s+/, $1);
232
}
233
return @opts;
234
0 commit comments