Skip to content

Commit

Permalink
Update brpc.patch (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Dec 14, 2023
1 parent 6ba8bd5 commit 2b7d888
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions bazel/patches/brpc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,20 @@ index be02c50a..186abe54 100644
}
return true;
diff --git a/BUILD.bazel b/BUILD.bazel
index 5e59bd1c..9df99bfc 100644
index 5d317c90..5bb62a6e 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -48,7 +48,7 @@ LINKOPTS = [
@@ -45,13 +45,17 @@ 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 = [
"-pthread",
"-ldl",
] + select({
Expand All @@ -87,7 +97,7 @@ index 5e59bd1c..9df99bfc 100644
"-framework CoreFoundation",
"-framework CoreGraphics",
"-framework CoreData",
@@ -206,7 +206,7 @@ BUTIL_SRCS = [
@@ -215,7 +219,7 @@ BUTIL_SRCS = [
"src/butil/recordio.cc",
"src/butil/popen.cpp",
] + select({
Expand All @@ -96,7 +106,7 @@ index 5e59bd1c..9df99bfc 100644
"src/butil/time/time_mac.cc",
"src/butil/mac/scoped_mach_port.cc",
],
@@ -314,15 +314,14 @@ cc_library(
@@ -324,15 +328,14 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
"@com_github_gflags_gflags//:gflags",
Expand All @@ -115,6 +125,7 @@ index 5e59bd1c..9df99bfc 100644
"//conditions:default": [],
}),
)

diff --git a/bazel/config/BUILD.bazel b/bazel/config/BUILD.bazel
index 4471bad1..d9cc6bd6 100644
--- a/bazel/config/BUILD.bazel
Expand Down

0 comments on commit 2b7d888

Please sign in to comment.