diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/jsonnet/0005-use-upstream-rapidyaml.patch | |
Diffstat (limited to 'vcpkg/ports/jsonnet/0005-use-upstream-rapidyaml.patch')
| -rw-r--r-- | vcpkg/ports/jsonnet/0005-use-upstream-rapidyaml.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/jsonnet/0005-use-upstream-rapidyaml.patch b/vcpkg/ports/jsonnet/0005-use-upstream-rapidyaml.patch new file mode 100644 index 0000000..b47a254 --- /dev/null +++ b/vcpkg/ports/jsonnet/0005-use-upstream-rapidyaml.patch @@ -0,0 +1,46 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3ebf359..8562715 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,6 +13,7 @@ option(BUILD_STATIC_LIBS "Build a static libjsonnet." ON) + option(BUILD_SHARED_BINARIES "Link binaries to the shared libjsonnet instead of the static one." OFF) + option(USE_SYSTEM_GTEST "Use system-provided gtest library" OFF) + option(USE_SYSTEM_JSON "Use the system-provided json library" OFF) ++option(USE_SYSTEM_RYML "Use the system-provided rapidyaml library" OFF) + # TODO: Support using a system Rapid YAML install. + set(GLOBAL_OUTPUT_PATH_SUFFIX "" CACHE STRING + "Output artifacts directory.") +@@ -104,6 +105,11 @@ if(USE_SYSTEM_JSON) + else() + add_subdirectory(third_party/json) + endif() ++if(USE_SYSTEM_RYML) ++ find_package(ryml CONFIG REQUIRED) ++else() ++ add_subdirectory(third_party/rapidyaml/rapidyaml ryml) ++endif() + + # Look for libraries in global output path. + link_directories(${GLOBAL_OUTPUT_PATH}) +@@ -125,7 +131,6 @@ endif() + add_subdirectory(include) + add_subdirectory(stdlib) + add_subdirectory(third_party/md5) +-add_subdirectory(third_party/rapidyaml) + add_subdirectory(core) + add_subdirectory(cpp) + add_subdirectory(cmd) +diff --git a/core/vm.cpp b/core/vm.cpp +index faf6d54..f14ddbe 100644 +--- a/core/vm.cpp ++++ b/core/vm.cpp +@@ -30,7 +30,8 @@ limitations under the License. + #include <nlohmann/json.hpp> + #include "md5.h" + #include "parser.h" +-#include "ryml_all.hpp" ++#include "ryml/ryml.hpp" ++#include "ryml/ryml_std.hpp" + #include "state.h" + #include "static_analysis.h" + #include "string_utils.h" |