Skip to content

Commit

Permalink
Update abseil-cpp to fix build with Clang >=16
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
robinlinden committed Oct 18, 2023
1 parent ef5d034 commit 445add9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
build --action_env=CC=clang-10
build --action_env=CXX=clang++-10

# Needed for abseil-cpp until https://github.com/bazelbuild/bazel/pull/19794 is released.
build --cxxopt=-std=c++14

# Workaround for https://github.com/bazelbuild/bazel/issues/3236
build --sandbox_tmpfs_path=/tmp

Expand Down
6 changes: 3 additions & 3 deletions fuzzing/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def rules_fuzzing_dependencies(oss_fuzz = True, honggfuzz = True, jazzer = True)
maybe(
http_archive,
name = "com_google_absl",
urls = ["https://github.com/abseil/abseil-cpp/archive/f2dbd918d8d08529800eb72f23bd2829f92104a4.zip"],
strip_prefix = "abseil-cpp-f2dbd918d8d08529800eb72f23bd2829f92104a4",
sha256 = "5e1cbf25bf501f8e37866000a6052d02dbdd7b19a5b592251c59a4c9aa5c71ae",
urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.zip"],
strip_prefix = "abseil-cpp-20230802.1",
sha256 = "497ebdc3a4885d9209b9bd416e8c3f71e7a1fb8af249f6c2a80b7cbeefcd7e21",
)

if oss_fuzz:
Expand Down

0 comments on commit 445add9

Please sign in to comment.