Bump vectorscan to 5.4.11

This commit is contained in:
Robert Schulze 2024-07-04 09:02:33 +00:00
parent 43b088dbd0
commit 33b7afc1b4
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
4 changed files with 14 additions and 23 deletions

View File

@ -5,7 +5,7 @@ else ()
endif () endif ()
if (NOT ENABLE_ICU) if (NOT ENABLE_ICU)
message(STATUS "Not using icu") message(STATUS "Not using ICU")
return() return()
endif() endif()

2
contrib/vectorscan vendored

@ -1 +1 @@
Subproject commit 4918f81ea3d1abd18905bac9876d4a1fe2ebdf07 Subproject commit d29730e1cb9daaa66bda63426cdce83505d2c809

View File

@ -1,11 +1,8 @@
# We use vectorscan, a portable and API/ABI-compatible drop-in replacement for hyperscan. # Vectorscan is drop-in replacement for Hyperscan.
if ((ARCH_AMD64 AND NOT NO_SSE3_OR_HIGHER) OR ARCH_AARCH64) if ((ARCH_AMD64 AND NOT NO_SSE3_OR_HIGHER) OR ARCH_AARCH64)
option (ENABLE_VECTORSCAN "Enable vectorscan library" ${ENABLE_LIBRARIES}) option (ENABLE_VECTORSCAN "Enable vectorscan" ${ENABLE_LIBRARIES})
endif() endif()
# TODO PPC should generally work but needs manual generation of ppc/config.h file on a PPC machine
if (NOT ENABLE_VECTORSCAN) if (NOT ENABLE_VECTORSCAN)
message (STATUS "Not using vectorscan") message (STATUS "Not using vectorscan")
return() return()
@ -272,34 +269,24 @@ if (ARCH_AARCH64)
) )
endif() endif()
# TODO
# if (ARCH_PPC64LE)
# list(APPEND SRCS
# "${LIBRARY_DIR}/src/util/supervector/arch/ppc64el/impl.cpp"
# )
# endif()
add_library (_vectorscan ${SRCS}) add_library (_vectorscan ${SRCS})
target_compile_options (_vectorscan PRIVATE
-fno-sanitize=undefined # assume the library takes care of itself
-O2 -fno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden # options from original build system
)
# library has too much debug information # library has too much debug information
if (OMIT_HEAVY_DEBUG_SYMBOLS) if (OMIT_HEAVY_DEBUG_SYMBOLS)
target_compile_options (_vectorscan PRIVATE -g0) target_compile_options (_vectorscan PRIVATE -g0)
endif() endif()
# Include version header manually generated by running the original build system target_include_directories (_vectorscan SYSTEM PUBLIC "${LIBRARY_DIR}/src")
target_include_directories (_vectorscan SYSTEM PRIVATE common)
# Makes the version header visible. It was generated by running the native build system manually.
# Please update whenever you update vectorscan.
target_include_directories (_vectorscan SYSTEM PUBLIC common)
# vectorscan inherited some patched in-source versions of boost headers to fix a bug in # vectorscan inherited some patched in-source versions of boost headers to fix a bug in
# boost 1.69. This bug has been solved long ago but vectorscan's source code still # boost 1.69. This bug has been solved long ago but vectorscan's source code still
# points to the patched versions, so include it here. # points to the patched versions, so include it here.
target_include_directories (_vectorscan SYSTEM PRIVATE "${LIBRARY_DIR}/include") target_include_directories (_vectorscan SYSTEM PRIVATE "${LIBRARY_DIR}/include")
target_include_directories (_vectorscan SYSTEM PUBLIC "${LIBRARY_DIR}/src")
# Include platform-specific config header generated by manually running the original build system # Include platform-specific config header generated by manually running the original build system
# Please regenerate these files if you update vectorscan. # Please regenerate these files if you update vectorscan.

View File

@ -32,8 +32,12 @@
/** /**
* A version string to identify this release of Hyperscan. * A version string to identify this release of Hyperscan.
*/ */
#define HS_VERSION_STRING "5.4.7 2022-06-20" #define HS_VERSION_STRING "5.4.11 2024-07-04"
#define HS_VERSION_32BIT ((5 << 24) | (1 << 16) | (7 << 8) | 0) #define HS_VERSION_32BIT ((5 << 24) | (1 << 16) | (7 << 8) | 0)
#define HS_MAJOR 5
#define HS_MINOR 4
#define HS_PATCH 11
#endif /* HS_VERSION_H_C6428FAF8E3713 */ #endif /* HS_VERSION_H_C6428FAF8E3713 */