Configurable read buffer size

This commit is contained in:
2025-08-19 12:20:56 -04:00
parent 2b458747f8
commit 91dcf04635
4 changed files with 86 additions and 10 deletions

View File

@@ -86,6 +86,27 @@ 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