aports/community/jsonnet/rapidyaml-loongarch64.patch
2025-05-16 20:36:12 +00:00

15 lines
482 B
Diff

diff --git a/third_party/rapidyaml/ryml_all.hpp b/third_party/rapidyaml/ryml_all.hpp
index e4b3275..00a4728 100644
--- a/third_party/rapidyaml/ryml_all.hpp
+++ b/third_party/rapidyaml/ryml_all.hpp
@@ -498,6 +498,10 @@ C4_FOR_EACH(PRN_STRUCT_OFFSETS, a, b, c);
#endif
#define C4_BYTE_ORDER _C4EL
+#elif defined(__loongarch64)
+ #define C4_CPU_LOONGARCH64
+ #define C4_WORDSIZE 8
+
#elif defined(__EMSCRIPTEN__)
# define C4_BYTE_ORDER _C4EL
# define C4_WORDSIZE 4