Skip to content

Commit 8502562

Browse files
committed
fix: fix compilation issue
- lock abseil-cpp to version 20250127.1 to avoid compatible issue of protobuf Signed-off-by: Pride Leong <[email protected]>
1 parent 84e7daa commit 8502562

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

MODULE.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,20 @@ bazel_dep(name = "boost.signals2", version = "1.87.0")
3939
bazel_dep(name = "boost.tuple", version = "1.87.0")
4040

4141
# thirdparty
42-
bazel_dep(name = "abseil-cpp", version = "20240116.2", repo_name = "com_google_absl")
42+
bazel_dep(name = "abseil-cpp", version = "20250127.1", repo_name = "com_google_absl")
43+
single_version_override(
44+
module_name = "abseil-cpp",
45+
# locked at 20250127.1 to be compatible with protobuf
46+
# the target `if_constexpr` of `absl/utility/BUILD.bazel` removed or
47+
# migrated in newer versions, which depended by protobuf
48+
version = "20250127.1",
49+
)
50+
4351
bazel_dep(name = "cpplint", version = "2.0.2")
4452
bazel_dep(name = "eigen", version = "4.0.0-20241125.bcr.2")
4553
bazel_dep(name = "nlohmann_json", version = "3.12.0", repo_name = "com_github_nlohmann_json")
4654
bazel_dep(name = "gflags", version = "2.2.2", repo_name = "com_github_gflags_gflags")
55+
4756
# Note: build gflags as a shared library and make the third-party(pre-compiled
4857
# library such as paddleinference) link to it to keep only one copy of gflags
4958
# in one process

0 commit comments

Comments
 (0)