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 8a3d33c commit 94478aaCopy full SHA for 94478aa
src/tools/msvc/pgflex.pl
@@ -12,10 +12,14 @@
12
13
require 'src/tools/msvc/buildenv.pl' if -e 'src/tools/msvc/buildenv.pl';
14
15
-system('flex -V > NUL');
16
-if ($? != 0)
+my ($flexver) = `flex -V`; # grab first line
+$flexver=(split(/\s+/,$flexver))[1];
17
+$flexver =~ s/[^0-9.]//g;
18
+my @verparts = split(/\./,$flexver);
19
+unless ($verparts[0] == 2 && $verparts[1] == 5 && $verparts[2] >= 31)
20
{
- print "WARNING! flex install not found, attempting to build without\n";
21
+ print "WARNING! Flex install not found, or unsupported Flex version.\n";
22
+ print "echo Attempting to build without.\n";
23
exit 0;
24
}
25
0 commit comments