Skip to content

Commit dd17659

Browse files
committed
fix re2c version comparison
1 parent 76c9b58 commit dd17659

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

win32/build/confutils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,6 +2663,10 @@ function toolset_setup_project_tools()
26632663
RE2CVERS = probe_binary(RE2C, "version");
26642664
STDOUT.WriteLine(' Detected re2c version ' + RE2CVERS);
26652665

2666+
if (RE2CVERS.match(/^\d+.\d+$/)) {
2667+
RE2CVERS += ".0";
2668+
}
2669+
26662670
intvers = RE2CVERS.replace(pattern, '') - 0;
26672671
intmin = MINRE2C.replace(pattern, '') - 0;
26682672

0 commit comments

Comments
 (0)