Files
Ryan VanderMeulen 2ef77c8c6d Bug 2067508 - updated abseil-cpp patch stack. r=firefox-build-system-reviewers,sergesanspaille
Rebased onto chromium third_party cd3dd0a61f8. Drops the ABSL_HAVE_THREAD_SANITIZER
and ABSL_HAVE_LEAK_SANITIZER disables, which the preceding system-header change makes
unnecessary; the -Wsign-compare suppression, which protobuf v36 no longer needs; and
the android api < 17 SYS_mmap2 patch, replaced by the next commit. Consolidates the
remaining eleven local patches into six.

Differential Revision: https://phabricator.services.mozilla.com/D322121
2026-09-01 13:02:39 +00:00

70 lines
2.0 KiB
Diff

From: Ryan VanderMeulen <rvandermeulen@mozilla.com>
Date: Sun, 23 Aug 2026 13:55:21 -0400
Subject: Bug 1938156, Bug 1935474 - adjust which abseil-cpp gn targets we
build.
Drops a group we do not need and allows building all of absl_component_deps.
---
abseil-cpp/BUILD.gn | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/abseil-cpp/BUILD.gn b/abseil-cpp/BUILD.gn
index 3b1cb12de3e..80f4c3943be 100644
--- a/abseil-cpp/BUILD.gn
+++ b/abseil-cpp/BUILD.gn
@@ -39,7 +39,7 @@ component("absl") {
sources = [ file ]
}
}
- if (is_win) {
+ if (is_win && !moz_webrtc_build) {
all_dependent_configs = [ "//tools/win/DebugVisualizers:absl" ]
inputs = [
# absl.natvis listed as an input here instead of in
@@ -149,14 +149,29 @@ group("absl_component_deps") {
}
visibility = [ ":absl" ]
+
+ if (moz_webrtc_build) {
+ # rewrite deps for our new abseil-cpp location
+ if (defined(public_deps)) {
+ modified_deps = []
+ foreach (dep, public_deps) {
+ newdep = string_replace(dep, "//third_party/abseil-cpp/", "//")
+ modified_deps += [ newdep ]
+ }
+ public_deps = []
+ public_deps = modified_deps
+ }
+ }
}
# Abseil testing utilities should only be included in test binaries.
+if (!moz_webrtc_build) {
source_set("test_support") {
testonly = true
public_deps = [ "//third_party/abseil-cpp/absl/hash:hash_testing" ]
deps = [ ":absl" ]
}
+}
# Some third-party libraries use additional parts of absl that are banned in
# Chrome (e.g. flags generates static initializers that are undesirable in
@@ -191,6 +206,7 @@ source_set("absl_full") {
}
group("absl_full_deps") {
+ if (!moz_webrtc_build) {
public_deps = [
# Banned because each flag registration generates a static initializer, and
# the flag registration mechanism is problematic in component builds.
@@ -213,6 +229,7 @@ group("absl_full_deps") {
]
public_configs = [ "//third_party/abseil-cpp/absl/flags:absl_flags_config" ]
+ }
}
config("absl_include_config") {