Skip to content

Commit 3504079

Browse files
authored
Update abseil-cpp to fix build with Clang >=16 (#237)
This fixes a build error in newer Clang caused by a feature=layering_check violation: ``` In file included from external/com_google_absl/absl/debugging/stacktrace.cc:46: external/com_google_absl/absl/debugging/internal/stacktrace_x86-inl.inc:38:10: error: module @com_google_absl//absl/debugging:stacktrace does not depend on a module exporting 'absl/base/internal/raw_logging.h' ^ 1 error generated. ```
1 parent ef5d034 commit 3504079

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
build --action_env=CC=clang-10
1717
build --action_env=CXX=clang++-10
1818

19+
# Needed for abseil-cpp until https://github.com/bazelbuild/bazel/pull/19794 is released.
20+
build --cxxopt=-std=c++14
21+
1922
# Workaround for https://github.com/bazelbuild/bazel/issues/3236
2023
build --sandbox_tmpfs_path=/tmp
2124

fuzzing/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def rules_fuzzing_dependencies(oss_fuzz = True, honggfuzz = True, jazzer = True)
5555
maybe(
5656
http_archive,
5757
name = "com_google_absl",
58-
urls = ["https://github.com/abseil/abseil-cpp/archive/f2dbd918d8d08529800eb72f23bd2829f92104a4.zip"],
59-
strip_prefix = "abseil-cpp-f2dbd918d8d08529800eb72f23bd2829f92104a4",
60-
sha256 = "5e1cbf25bf501f8e37866000a6052d02dbdd7b19a5b592251c59a4c9aa5c71ae",
58+
urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.zip"],
59+
strip_prefix = "abseil-cpp-20230802.1",
60+
sha256 = "497ebdc3a4885d9209b9bd416e8c3f71e7a1fb8af249f6c2a80b7cbeefcd7e21",
6161
)
6262

6363
if oss_fuzz:

0 commit comments

Comments
 (0)