Skip to content

Commit ee0df4d

Browse files
committed
Accept flex > 2.5.x on Windows, too.
Commit 32f15d0 fixed this in configure, but missed the similar check in the MSVC scripts. Michael Paquier, per report from Victor Wagner
1 parent 7145d35 commit ee0df4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/msvc/pgflex.pl

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
$flexver = (split(/\s+/, $flexver))[1];
1717
$flexver =~ s/[^0-9.]//g;
1818
my @verparts = split(/\./, $flexver);
19-
unless ($verparts[0] == 2 && $verparts[1] == 5 && $verparts[2] >= 31)
19+
unless ($verparts[0] == 2 &&
20+
($verparts[1] > 5 || ($verparts[1] == 5 && $verparts[2] >= 31)))
2021
{
2122
print "WARNING! Flex install not found, or unsupported Flex version.\n";
2223
print "echo Attempting to build without.\n";

0 commit comments

Comments
 (0)