diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-libs/simdjson/files | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/simdjson/files')
| -rw-r--r-- | dev-libs/simdjson/files/simdjson-1.0.0-install-tools.patch | 21 | ||||
| -rw-r--r-- | dev-libs/simdjson/files/simdjson-3.10.1-tests.patch | 33 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/simdjson/files/simdjson-1.0.0-install-tools.patch b/dev-libs/simdjson/files/simdjson-1.0.0-install-tools.patch new file mode 100644 index 000000000000..10d332315608 --- /dev/null +++ b/dev-libs/simdjson/files/simdjson-1.0.0-install-tools.patch @@ -0,0 +1,21 @@ +diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt +index f3eaa054..4eaff3d1 100644 +--- a/tools/CMakeLists.txt ++++ b/tools/CMakeLists.txt +@@ -1,12 +1,13 @@ +-if(TARGET cxxopts) # we only build the tools if cxxopts is available ++if(SIMDJSON_TOOLS) + message(STATUS "We have cxxopts as a dependency and we are building the tools (e.g., json2json).") +- foreach(tool IN ITEMS json2json jsonstats jsonpointer minify) ++ foreach(tool IN ITEMS json2json jsonstats simdjsonpointer minify) + add_executable("${tool}" "${tool}.cpp") + simdjson_apply_props("${tool}") + target_link_libraries( + "${tool}" PRIVATE +- simdjson simdjson-internal-flags simdjson-windows-headers cxxopts ++ simdjson simdjson-internal-flags simdjson-windows-headers + ) ++ install(TARGETS "${tool}") + endforeach() + else() + message(STATUS "We are missing cxxopts as a dependency so the tools (e.g., json2json) are omitted.") diff --git a/dev-libs/simdjson/files/simdjson-3.10.1-tests.patch b/dev-libs/simdjson/files/simdjson-3.10.1-tests.patch new file mode 100644 index 000000000000..a5eade492ec6 --- /dev/null +++ b/dev-libs/simdjson/files/simdjson-3.10.1-tests.patch @@ -0,0 +1,33 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ca23a8a0..0bf54dd6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -303,12 +303,11 @@ endif() + # + # Compile tools / tests / benchmarks + # +-add_subdirectory(tests) +-add_subdirectory(examples) +-if(CMAKE_SIZEOF_VOID_P EQUAL 8) # we only include the benchmarks on 64-bit systems. +- add_subdirectory(benchmark) ++if (SIMDJSON_TESTS) ++ add_subdirectory(tests) ++ add_subdirectory(fuzz) + endif() +-add_subdirectory(fuzz) ++add_subdirectory(examples) + + # + # Source files should be just ASCII +diff --git a/tests/ondemand/compilation_failure_tests/CMakeLists.txt b/tests/ondemand/compilation_failure_tests/CMakeLists.txt +index 54b74afb..b14567d3 100644 +--- a/tests/ondemand/compilation_failure_tests/CMakeLists.txt ++++ b/tests/ondemand/compilation_failure_tests/CMakeLists.txt +@@ -13,6 +13,7 @@ function(add_dual_compile_test TEST_NAME) + target_compile_definitions(${TEST_NAME}_should_not_compile PRIVATE COMPILATION_TEST_USE_FAILING_CODE=1) + endfunction(add_dual_compile_test) + ++target_compile_options(simdjson-internal-flags INTERFACE -Werror=uninitialized) + add_dual_compile_test(iterate_object) + add_dual_compile_test(iterate_array) + add_dual_compile_test(iterate_char_star) |
