Skip to content

Commit

Permalink
lexers: use re2c workaround only up to v4.0.2
Browse files Browse the repository at this point in the history
The workaround was necessary due to an upstream bug that has been fixed
after 4.0.2, see skvadrik/re2c#523.
  • Loading branch information
gmcn42 committed Jan 16, 2025
1 parent 552d04d commit 8526d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ add_link_options(
)

find_package(RE2C 3 REQUIRED)
if(RE2C_VERSION VERSION_GREATER_EQUAL "4.0.0")
message("re2c version >=4.0 found, activating bit-vector optimization incompatibility workaround.")
if(RE2C_VERSION VERSION_GREATER_EQUAL "4.0.0" AND RE2C_VERSION VERSION_LESS_EQUAL "4.0.2")
message("re2c version 4.0.0>=4.0.2 detected, activating bit-vector optimization incompatibility workaround.")
set(RE2C_OPTIONS "-isc" STRING)
else()
set(RE2C_OPTIONS "-ibsc" STRING)
Expand Down

0 comments on commit 8526d62

Please sign in to comment.