8000
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 4816d2e commit e583ffeCopy full SHA for e583ffe
src/tools/msvc/pgbison.pl
@@ -42,7 +42,8 @@
42
local $/ = undef;
43
$make = <$mf>;
44
close($mf);
45
-my $headerflag = ($make =~ /\$\(BISON\)\s+-d/ ? '-d' : '');
+my $basetarg = basename($output);
46
+my $headerflag = ($make =~ /^$basetarg:\s+BISONFLAGS\b.*-d/m ? '-d' : '');
47
48
system("bison $headerflag $input -o $output");
49
exit $? >> 8;
src/tools/msvc/pgflex.pl
@@ -44,7 +44,8 @@
-my $flexflags = ($make =~ /^\s*FLEXFLAGS\s*=\s*(\S.*)/m ? $1 : '');
+my $flexflags = ($make =~ /^$basetarg:\s*FLEXFLAGS\s*=\s*(\S.*)/m ? $1 : '');
50
system("flex $flexflags -o$output $input");
51
if ($? == 0)
0 commit comments