Skip to content

Commit

Permalink
Restore linux aarch64 brpc patch (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Mar 12, 2024
1 parent 1714e0b commit cfe90e6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bazel/patches/brpc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,18 @@ index a2eea9cf..d5c7372f 100644
"//conditions:default": [
"test_file_util_linux.cc",
"proc_maps_linux_unittest.cc",
diff --git a/BUILD.bazel b/BUILD.bazel
index 0bdaa4d3..43597f63 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -45,6 +45,10 @@ COPTS = [
}) + select({
"//bazel/config:brpc_with_rdma": ["-DBRPC_WITH_RDMA=1"],
"//conditions:default": [""],
+}) + select({
+ # Force linux aarch to use O1 build
+ "@bazel_tools//src/conditions:linux_aarch64": ["-O1"],
+ "//conditions:default": [""],
})

LINKOPTS = [

0 comments on commit cfe90e6

Please sign in to comment.