Replace VLA with thread local vectors

This commit is contained in:
2025-08-22 18:04:12 -04:00
parent f51f257df6
commit c58a00a34f
3 changed files with 27 additions and 35 deletions

View File

@@ -88,27 +88,6 @@ FetchContent_MakeAvailable(llhttp)
include_directories(src)
# Check for VLA (Variable Length Array) support
include(CheckCXXSourceCompiles)
check_cxx_source_compiles(
"
int main() {
int n = 10;
char arr[n];
return 0;
}
"
HAVE_VLA_SUPPORT)
if(NOT HAVE_VLA_SUPPORT)
message(
FATAL_ERROR
"Compiler must support Variable Length Arrays (VLA). Please use GCC or Clang."
)
endif()
message(STATUS "Compiler supports Variable Length Arrays")
find_package(weaseljson REQUIRED)
# Generate JSON token hash table using gperf