From c121e976d6866c8300877d37d26c823bce85f59e Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 9 Oct 2024 15:06:36 -0400 Subject: [PATCH] Upgrade JSON Toolkit to `9abbaee71e9e00e95632858d29c7ebe5c2a723b0` (#175) Signed-off-by: Juan Cruz Viotti --- DEPENDENCIES | 2 +- .../jsontoolkit/src/evaluator/CMakeLists.txt | 4 ++++ vendor/jsontoolkit/src/json/stringify.h | 24 ++++++++++++++----- .../noa/cmake/noa/compiler/options.cmake | 22 ++++++++++++++++- 4 files changed, 44 insertions(+), 8 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index 59f083c..a476071 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -1,6 +1,6 @@ vendorpull https://github.com/sourcemeta/vendorpull dea311b5bfb53b6926a4140267959ae334d3ecf4 noa https://github.com/sourcemeta/noa 517e88aef5981b88ac6bb8caff15d17dffcb4320 -jsontoolkit https://github.com/sourcemeta/jsontoolkit b5c8f63fbc4b4b7a9cd4bdd71774d89db6ee2a99 +jsontoolkit https://github.com/sourcemeta/jsontoolkit 9abbaee71e9e00e95632858d29c7ebe5c2a723b0 hydra https://github.com/sourcemeta/hydra 3c53d3fdef79e9ba603d48470a508cc45472a0dc alterschema https://github.com/sourcemeta/alterschema 358df64771979da64e043a416cf340d83a5382ca jsonbinpack https://github.com/sourcemeta/jsonbinpack 3046d0b9820b7da7f10645ca5fae6b0ffb749422 diff --git a/vendor/jsontoolkit/src/evaluator/CMakeLists.txt b/vendor/jsontoolkit/src/evaluator/CMakeLists.txt index 075dadc..1140bc9 100644 --- a/vendor/jsontoolkit/src/evaluator/CMakeLists.txt +++ b/vendor/jsontoolkit/src/evaluator/CMakeLists.txt @@ -7,6 +7,10 @@ if(JSONTOOLKIT_INSTALL) noa_library_install(NAMESPACE sourcemeta PROJECT jsontoolkit NAME evaluator) endif() +if(PROJECT_IS_TOP_LEVEL) + noa_add_vectorization_diagnostics(sourcemeta_jsontoolkit_evaluator) +endif() + target_link_libraries(sourcemeta_jsontoolkit_evaluator PUBLIC sourcemeta::jsontoolkit::json) target_link_libraries(sourcemeta_jsontoolkit_evaluator PUBLIC diff --git a/vendor/jsontoolkit/src/json/stringify.h b/vendor/jsontoolkit/src/json/stringify.h index eec7cf2..2acb9bc 100644 --- a/vendor/jsontoolkit/src/json/stringify.h +++ b/vendor/jsontoolkit/src/json/stringify.h @@ -6,7 +6,8 @@ #include #include // std::transform, std::sort -#include // std::showpoint, std::noshowpoint +#include // std::setprecision +#include // std::noshowpoint, std::fixed #include // std::next, std::cbegin, std::cend, std::back_inserter #include // std::basic_ostream #include // std::to_string @@ -64,14 +65,23 @@ auto stringify( template