Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Patch brpc for ARM mac.

Kishore Nalland3f9f64ef2ac
diff --git a/bazel/brpc/brpc.patch b/bazel/brpc/brpc.patch
index 34e9942a..0bd8874f 100644
--- a/bazel/brpc/brpc.patch
+++ b/bazel/brpc/brpc.patch
@@ -1,4 +1,20 @@
-
+--- src/bvar/default_variables.cpp
++++ src/bvar/default_variables.cpp
+@@ -447,7 +447,13 @@
+ // in MacOS.
+ memset(s, 0, sizeof(ProcIO));
+ static pid_t pid = getpid();
+- rusage_info_current rusage;
++
++ #ifdef __arm__
++ rusage_info_v4 rusage;
++ #else
++ rusage_info_current rusage;
++ #endif
++
+ if (proc_pid_rusage(pid, RUSAGE_INFO_CURRENT, (void**)&rusage) != 0) {
+ PLOG(WARNING) << "Fail to proc_pid_rusage";
+ return false;
--- BUILD.bazel
+++ BUILD.bazel