diff --git a/MODULE.bazel b/MODULE.bazel index e98777ab879..b1a79a10fe2 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -11,12 +11,12 @@ http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_ http_archive( name = "bazel_clang_tidy", - integrity = "sha256-4jSWCC9GXwk4VeqLNZl6heYZUsUqvC8EP1OO+JEVDSA=", - strip_prefix = "bazel_clang_tidy-908bf1af4e5b645a7a897b43552c5e482195ee25", + integrity = "sha256-PLwbo3dS1ZgeuSiaUctGRIU/O3ScB64+U2mEsN7fgtA=", + strip_prefix = "bazel_clang_tidy-1.7", urls = [ # Implements retry by relisting each url multiple times to be used as a failover. # TODO(SERVER-86719): Re-implement http_archive to allow sleeping between retries - "https://github.com/mongodb-forks/bazel_clang_tidy/archive/908bf1af4e5b645a7a897b43552c5e482195ee25.tar.gz", + "https://github.com/mongodb-forks/bazel_clang_tidy/archive/refs/tags/v1.7.tar.gz", ] * 5, ) @@ -139,7 +139,7 @@ single_version_override( version = "1.3.1", ) -bazel_dep(name = "abseil-cpp", version = "", repo_name = "com_google_absl") +bazel_dep(name = "abseil-cpp", version = "20250512.1", repo_name = "com_google_absl") local_path_override( module_name = "abseil-cpp", path = "src/third_party/abseil-cpp/dist", diff --git a/bazel/mongo_src_rules.bzl b/bazel/mongo_src_rules.bzl index a55d8b33281..6df7b16eee5 100644 --- a/bazel/mongo_src_rules.bzl +++ b/bazel/mongo_src_rules.bzl @@ -2,7 +2,6 @@ BUILD files in the "src/" subtree. """ -load("//bazel/toolchains/cc:mongo_defines.bzl", "MONGO_GLOBAL_DEFINES") load( "//bazel/toolchains/cc:mongo_errors.bzl", "REQUIRED_SETTINGS_LIBUNWIND_ERROR_MESSAGE", @@ -214,7 +213,6 @@ DISABLE_3RD_PARTY_FEATURES = select({ }) MONGO_GLOBAL_SRC_DEPS = [ - "//src/third_party/abseil-cpp:absl_base", "//src/third_party/boost:headers", "//src/third_party/croaring:croaring", "//src/third_party/fmt:fmt", @@ -225,7 +223,6 @@ MONGO_GLOBAL_SRC_DEPS = [ "//src/third_party/SafeInt:headers", "//src/third_party/sasl:windows_sasl", "//src/third_party/valgrind:headers", - "//src/third_party/abseil-cpp:absl_local_repo_deps", ] MONGO_GLOBAL_ADDITIONAL_LINKER_INPUTS = SYMBOL_ORDER_FILES @@ -460,7 +457,7 @@ def mongo_cc_library( "@platforms//os:windows": True, "//conditions:default": linkstatic, }), - local_defines = MONGO_GLOBAL_DEFINES + local_defines, + local_defines = local_defines, defines = defines, includes = includes, features = features, @@ -676,7 +673,7 @@ def _mongo_cc_binary_and_test( "//conditions:default": [], }), "linkstatic": LINKSTATIC_ENABLED, - "local_defines": MONGO_GLOBAL_DEFINES + local_defines, + "local_defines": local_defines, "defines": defines, "includes": includes, "features": ["-pic", "pie"] + features + select({ diff --git a/bazel/toolchains/cc/mongo_apple/BUILD.tmpl b/bazel/toolchains/cc/mongo_apple/BUILD.tmpl index dbe6d121d23..c68d6afde54 100644 --- a/bazel/toolchains/cc/mongo_apple/BUILD.tmpl +++ b/bazel/toolchains/cc/mongo_apple/BUILD.tmpl @@ -3,6 +3,7 @@ package(default_visibility = ["//visibility:public"]) load("@//bazel/config:configs.bzl", "sdkroot") load("@//bazel/toolchains/cc/mongo_apple:mongo_apple_toolchain.bzl", "get_supported_apple_archs") load("@//bazel/toolchains/cc/mongo_apple:mongo_apple_llvm_cc_toolchain_config.bzl", "mongo_apple_llvm_cc_toolchain_config") +load("@//bazel/toolchains/cc:mongo_defines.bzl", "MONGO_GLOBAL_DEFINES") load( "@//bazel/toolchains/cc:mongo_custom_features.bzl", "FEATURES_ATTR_NAMES", @@ -97,12 +98,13 @@ feature_attrs = get_common_features_attrs() builtin_sysroot = "@//bazel/config:sdkroot", optimization_level = feature_attrs[FEATURES_ATTR_NAMES.OPT_LEVEL], debug_level = DEBUG_LEVEL, - supports_start_end_lib = True, + supports_start_end_lib = False, internal_thin_lto_enabled = INTERNAL_THIN_LTO_ENABLED, coverage_enabled = COVERAGE_ENABLED, compress_debug_enabled = COMPRESS_DEBUG_ENABLED, warnings_as_errors_enabled = WARNINGS_AS_ERRORS_ENABLED, linkstatic = LINKSTATIC_ENABLED, + global_defines = MONGO_GLOBAL_DEFINES, ) for arch, cpu in get_supported_apple_archs().items() ] diff --git a/bazel/toolchains/cc/mongo_apple/mongo_apple_llvm_cc_toolchain_config.bzl b/bazel/toolchains/cc/mongo_apple/mongo_apple_llvm_cc_toolchain_config.bzl index 8cf123af61a..2f83f1ccb10 100644 --- a/bazel/toolchains/cc/mongo_apple/mongo_apple_llvm_cc_toolchain_config.bzl +++ b/bazel/toolchains/cc/mongo_apple/mongo_apple_llvm_cc_toolchain_config.bzl @@ -906,6 +906,7 @@ def _impl(ctx): external_include_paths_feature = feature( name = "external_include_paths", + enabled = True, flag_sets = [ flag_set( actions = [ @@ -1726,6 +1727,7 @@ mongo_apple_llvm_cc_toolchain_config = rule( "compress_debug_enabled": attr.bool(default = False, mandatory = False), "warnings_as_errors_enabled": attr.bool(default = True, mandatory = False), "linkstatic": attr.bool(mandatory = True), + "global_defines": attr.string_list(mandatory = False), }, fragments = ["apple", "cpp"], provides = [CcToolchainConfigInfo], diff --git a/bazel/toolchains/cc/mongo_custom_features.bzl b/bazel/toolchains/cc/mongo_custom_features.bzl index 6589b47c0ae..c0048e57fbd 100644 --- a/bazel/toolchains/cc/mongo_custom_features.bzl +++ b/bazel/toolchains/cc/mongo_custom_features.bzl @@ -435,4 +435,17 @@ def get_common_features(ctx): ), ], ), + feature( + name = "mongo_defines", + enabled = True, + flag_sets = [ + flag_set( + actions = all_compile_actions, + flag_groups = [flag_group( + flags = + ["-D" + define for define in ctx.attr.global_defines], + )], + ), + ], + ), ] diff --git a/bazel/toolchains/cc/mongo_defines.bzl b/bazel/toolchains/cc/mongo_defines.bzl index 8914380eb32..da918ef77ad 100644 --- a/bazel/toolchains/cc/mongo_defines.bzl +++ b/bazel/toolchains/cc/mongo_defines.bzl @@ -2,21 +2,12 @@ """ load( - "//bazel/toolchains/cc:mongo_errors.bzl", + "@//bazel/toolchains/cc:mongo_errors.bzl", "GLIBCXX_DEBUG_ERROR_MESSAGE", "SYSTEM_ALLOCATOR_SANITIZER_ERROR_MESSAGE", "THREAD_SANITIZER_ERROR_MESSAGE", ) -# Defines are only visible to within //bazel directory where -# toolchains and rules are defined. -# TODO: define mongo_generate_config_header rule to hide -# all the compiler options. -visibility([ - "//src/mongo/util", - "//bazel", -]) - ABSEIL_DEFINES = [ "ABSL_FORCE_ALIGNED_ACCESS", ] @@ -34,29 +25,29 @@ BOOST_DEFINES = [ "BOOST_THREAD_USES_DATETIME", "BOOST_THREAD_VERSION=5", ] + select({ - "//bazel/config:linkdynamic_not_shared_archive": ["BOOST_LOG_DYN_LINK"], - "//conditions:default": [], + "@//bazel/config:linkdynamic_not_shared_archive": ["BOOST_LOG_DYN_LINK"], + "@//conditions:default": [], }) ENTERPRISE_DEFINES = select({ - "//bazel/config:build_enterprise_enabled": ["MONGO_ENTERPRISE_VERSION=1"], - "//conditions:default": [], + "@//bazel/config:build_enterprise_enabled": ["MONGO_ENTERPRISE_VERSION=1"], + "@//conditions:default": [], }) + select({ - "//bazel/config:enterprise_feature_audit_enabled": ["MONGO_ENTERPRISE_AUDIT=1"], - "//conditions:default": [], + "@//bazel/config:enterprise_feature_audit_enabled": ["MONGO_ENTERPRISE_AUDIT=1"], + "@//conditions:default": [], }) + select({ - "//bazel/config:enterprise_feature_encryptdb_enabled": ["MONGO_ENTERPRISE_ENCRYPTDB=1"], - "//conditions:default": [], + "@//bazel/config:enterprise_feature_encryptdb_enabled": ["MONGO_ENTERPRISE_ENCRYPTDB=1"], + "@//conditions:default": [], }) FORTIFY_DEFINE = select({ - "//bazel/config:opt_on_linux": ["_FORTIFY_SOURCE=3"], - "//conditions:default": [], + "@//bazel/config:opt_on_linux": ["_FORTIFY_SOURCE=3"], + "@//conditions:default": [], }) DEBUG_DEFINES = select({ - "//bazel/config:dbg_enabled": [], - "//conditions:default": ["NDEBUG"], + "@//bazel/config:dbg_enabled": [], + "@//conditions:default": ["NDEBUG"], }) PCRE2_DEFINES = ["PCRE2_STATIC"] @@ -68,28 +59,28 @@ SAFEINT_DEFINES = ["SAFEINT_USE_INTRINSICS=0"] # the running compiler. We do this unconditionally because abseil is basically # pervasive via the 'base' library. ADDRESS_SANITIZER_DEFINES = select({ - "//bazel/config:sanitize_address_required_settings": ["ADDRESS_SANITIZER"], - "//bazel/config:asan_disabled": [], + "@//bazel/config:sanitize_address_required_settings": ["ADDRESS_SANITIZER"], + "@//bazel/config:asan_disabled": [], }, no_match_error = SYSTEM_ALLOCATOR_SANITIZER_ERROR_MESSAGE) THREAD_SANITIZER_DEFINES = select({ - "//bazel/config:sanitize_thread_required_settings": ["THREAD_SANITIZER"], - "//bazel/config:tsan_disabled": [], + "@//bazel/config:sanitize_thread_required_settings": ["THREAD_SANITIZER"], + "@//bazel/config:tsan_disabled": [], }, no_match_error = THREAD_SANITIZER_ERROR_MESSAGE) UNDEFINED_SANITIZER_DEFINES = select({ - "//bazel/config:ubsan_enabled": ["UNDEFINED_BEHAVIOR_SANITIZER"], - "//bazel/config:ubsan_disabled": [], + "@//bazel/config:ubsan_enabled": ["UNDEFINED_BEHAVIOR_SANITIZER"], + "@//bazel/config:ubsan_disabled": [], }) GLIBCXX_DEBUG_DEFINES = select({ - ("//bazel/config:use_glibcxx_debug_required_settings"): ["_GLIBCXX_DEBUG"], - ("//bazel/config:use_glibcxx_debug_disabled"): [], + ("@//bazel/config:use_glibcxx_debug_required_settings"): ["_GLIBCXX_DEBUG"], + ("@//bazel/config:use_glibcxx_debug_disabled"): [], }, no_match_error = GLIBCXX_DEBUG_ERROR_MESSAGE) TCMALLOC_DEFINES = select({ - "//bazel/config:tcmalloc_google_enabled": ["ABSL_ALLOCATOR_NOTHROW"], - "//conditions:default": [], + "@//bazel/config:tcmalloc_google_enabled": ["ABSL_ALLOCATOR_NOTHROW"], + "@//conditions:default": [], }) MONGO_GLOBAL_DEFINES = ( diff --git a/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl b/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl index cf04e9274d4..fe9bafff32e 100644 --- a/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl +++ b/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl @@ -89,6 +89,9 @@ def _impl(ctx): # Do not resolve our symlinked resource prefixes to real paths. This is required to # make includes resolve correctly. "-no-canonical-prefixes", + ] if ctx.attr.compiler == COMPILERS.CLANG else [ + "-no-canonical-prefixes", + "-fno-canonical-system-headers", ], ), ], @@ -209,6 +212,33 @@ def _impl(ctx): ], ) + external_include_paths_feature = feature( + name = "external_include_paths", + enabled = True, + flag_sets = [ + flag_set( + actions = [ + ACTION_NAMES.preprocess_assemble, + ACTION_NAMES.linkstamp_compile, + ACTION_NAMES.c_compile, + ACTION_NAMES.cpp_compile, + ACTION_NAMES.cpp_header_parsing, + ACTION_NAMES.cpp_module_compile, + ACTION_NAMES.clif_match, + ACTION_NAMES.objc_compile, + ACTION_NAMES.objcpp_compile, + ], + flag_groups = [ + flag_group( + flags = ["-isystem", "%{external_include_paths}"], + iterate_over = "external_include_paths", + expand_if_available = "external_include_paths", + ), + ], + ), + ], + ) + library_search_directories_feature = feature( name = "library_search_directories", flag_sets = [ @@ -1706,6 +1736,7 @@ def _impl(ctx): "-Wno-missing-template-arg-list-after-template-kw", "-Wno-sign-compare", "-Wno-implicit-fallthrough", + "-Wno-shorten-64-to-32", ])], ), ], @@ -1749,6 +1780,7 @@ def _impl(ctx): bin_dirs_feature, default_compile_flags_feature, include_paths_feature, + external_include_paths_feature, library_search_directories_feature, supports_dynamic_linker_feature, supports_start_end_lib_feature, @@ -1910,6 +1942,7 @@ mongo_linux_cc_toolchain_config = rule( "coverage_enabled": attr.bool(default = False, mandatory = False), "compress_debug_enabled": attr.bool(default = False, mandatory = False), "warnings_as_errors_enabled": attr.bool(default = False, mandatory = False), + "global_defines": attr.string_list(mandatory = False), }, provides = [CcToolchainConfigInfo], ) diff --git a/bazel/toolchains/cc/mongo_linux/mongo_toolchain.BUILD.tmpl b/bazel/toolchains/cc/mongo_linux/mongo_toolchain.BUILD.tmpl index 6f1ac9b23ff..5c87c694ea8 100644 --- a/bazel/toolchains/cc/mongo_linux/mongo_toolchain.BUILD.tmpl +++ b/bazel/toolchains/cc/mongo_linux/mongo_toolchain.BUILD.tmpl @@ -19,6 +19,7 @@ load( "SYSTEM_ALLOCATOR_SANITIZER_ERROR_MESSAGE", "THREAD_SANITIZER_ERROR_MESSAGE", ) +load("@//bazel/toolchains/cc:mongo_defines.bzl", "MONGO_GLOBAL_DEFINES") package(default_visibility = ["//visibility:public"]) @@ -294,6 +295,7 @@ mongo_linux_cc_toolchain_config( coverage_enabled = COVERAGE_ENABLED, compress_debug_enabled = COMPRESS_DEBUG_ENABLED, warnings_as_errors_enabled = WARNINGS_AS_ERRORS_ENABLED, + global_defines = MONGO_GLOBAL_DEFINES, ) mongo_linux_cc_toolchain_config( @@ -360,6 +362,7 @@ mongo_linux_cc_toolchain_config( coverage_enabled = COVERAGE_ENABLED, compress_debug_enabled = COMPRESS_DEBUG_ENABLED, warnings_as_errors_enabled = WARNINGS_AS_ERRORS_ENABLED, + global_defines = MONGO_GLOBAL_DEFINES, ) cc_toolchain( diff --git a/bazel/toolchains/cc/mongo_windows/mongo_toolchain.BUILD.tmpl b/bazel/toolchains/cc/mongo_windows/mongo_toolchain.BUILD.tmpl index f8f7c92e6f3..487572d9b7d 100644 --- a/bazel/toolchains/cc/mongo_windows/mongo_toolchain.BUILD.tmpl +++ b/bazel/toolchains/cc/mongo_windows/mongo_toolchain.BUILD.tmpl @@ -1,4 +1,5 @@ load("@//bazel/toolchains/cc/mongo_windows:mongo_windows_cc_toolchain_config.bzl", "mongo_windows_cc_toolchain_config") +load("@//bazel/toolchains/cc:mongo_defines.bzl", "MONGO_GLOBAL_DEFINES") SMALLER_BINARY = select({ "@//bazel/config:msvc_opt": True, @@ -109,6 +110,7 @@ mongo_windows_cc_toolchain_config( opt_size = OPT_SIZE, dbg = DBG, debug_symbols = DEBUG_SYMBOLS, + global_defines = MONGO_GLOBAL_DEFINES, ) exports_files(["rc_wrapper.cmd"]) diff --git a/bazel/toolchains/cc/mongo_windows/mongo_windows_cc_toolchain_config.bzl b/bazel/toolchains/cc/mongo_windows/mongo_windows_cc_toolchain_config.bzl index f3faa7aae4e..76fa83b82a5 100644 --- a/bazel/toolchains/cc/mongo_windows/mongo_windows_cc_toolchain_config.bzl +++ b/bazel/toolchains/cc/mongo_windows/mongo_windows_cc_toolchain_config.bzl @@ -1063,6 +1063,7 @@ def _impl(ctx): external_include_paths_feature = feature( name = "external_include_paths", + enabled = True, flag_sets = [ flag_set( actions = [ @@ -1078,7 +1079,10 @@ def _impl(ctx): ], flag_groups = [ flag_group( - flags = ["/external:I%{external_include_paths}"], + flags = [ + "/external:I%{external_include_paths}", + "/external:W0", + ], iterate_over = "external_include_paths", expand_if_available = "external_include_paths", ), @@ -1591,6 +1595,20 @@ def _impl(ctx): ], ) + mongo_defines_feature = feature( + name = "mongo_defines", + enabled = True, + flag_sets = [ + flag_set( + actions = all_compile_actions, + flag_groups = [flag_group( + flags = + ["/D" + define for define in ctx.attr.global_defines], + )], + ), + ], + ) + features = [ no_legacy_features_feature, nologo_feature, @@ -1657,6 +1675,7 @@ def _impl(ctx): pdb_page_size_feature, incremental_feature, sasl_include_feature, + mongo_defines_feature, ] else: targets_windows_feature = feature( @@ -1993,6 +2012,7 @@ mongo_windows_cc_toolchain_config = rule( "opt_size": attr.bool(default = False), "dbg": attr.bool(default = False), "debug_symbols": attr.bool(default = False), + "global_defines": attr.string_list(mandatory = False), }, provides = [CcToolchainConfigInfo], ) diff --git a/etc/evergreen_yml_components/variants/ibm/test_release_master_and_lts_branches_only.yml b/etc/evergreen_yml_components/variants/ibm/test_release_master_and_lts_branches_only.yml index 745436fbc54..c485d7ad0e3 100644 --- a/etc/evergreen_yml_components/variants/ibm/test_release_master_and_lts_branches_only.yml +++ b/etc/evergreen_yml_components/variants/ibm/test_release_master_and_lts_branches_only.yml @@ -66,6 +66,7 @@ buildvariants: bazel_compile_flags: >- --linkstatic=False --define=MONGO_DISTMOD=rhel81 + --compiler_type=gcc compile_variant: enterprise-rhel-81-ppc64le-shared tasks: - name: compile_test_serial_TG diff --git a/modules_poc/mod_scanner.bzl b/modules_poc/mod_scanner.bzl index b47233392ee..f65f4c0dd1e 100644 --- a/modules_poc/mod_scanner.bzl +++ b/modules_poc/mod_scanner.bzl @@ -35,6 +35,7 @@ def _run_mod_scan( args.add_all(compilation_context.includes, before_each = "-I") args.add_all(compilation_context.quote_includes, before_each = "-iquote") args.add_all(compilation_context.system_includes, before_each = "-isystem") + args.add_all(compilation_context.external_includes, before_each = "-isystem") # add args specified by the toolchain, on the command line and rule copts args.add_all(flags) diff --git a/src/mongo/BUILD.bazel b/src/mongo/BUILD.bazel index c3ebe017b5a..17b7ab5669d 100644 --- a/src/mongo/BUILD.bazel +++ b/src/mongo/BUILD.bazel @@ -249,16 +249,18 @@ mongo_cc_library( "//src/mongo/util:boost_assert_shim", "//src/mongo/util:debugger", "//src/third_party/IntelRDFPMathLib20U1:intel_decimal128", - "//src/third_party/abseil-cpp:absl_city", - "//src/third_party/abseil-cpp:absl_hash", - "//src/third_party/abseil-cpp:absl_int128", - "//src/third_party/abseil-cpp:absl_low_level_hash", - "//src/third_party/abseil-cpp:absl_raw_hash_set", "//src/third_party/boost:boost_filesystem", "//src/third_party/boost:boost_iostreams", "//src/third_party/boost:boost_log", "//src/third_party/boost:boost_program_options", "//src/third_party/pcre2", + "@com_google_absl//absl/container:btree", + "@com_google_absl//absl/container:flat_hash_map", + "@com_google_absl//absl/container:flat_hash_set", + "@com_google_absl//absl/container:node_hash_map", + "@com_google_absl//absl/container:node_hash_set", + "@com_google_absl//absl/hash:city", + "@com_google_absl//absl/numeric:int128", ] + select({ "@platforms//os:linux": ["//src/mongo/platform:throw_hook"], "//conditions:default": [], diff --git a/src/mongo/db/BUILD.bazel b/src/mongo/db/BUILD.bazel index fede2136bf1..6fe17240b59 100644 --- a/src/mongo/db/BUILD.bazel +++ b/src/mongo/db/BUILD.bazel @@ -966,6 +966,7 @@ mongo_cc_library( "//src/mongo/util:background_job", "//src/mongo/util:elapsed_tracker", "//src/third_party/s2", + "@com_google_absl//absl/functional:bind_front", ], ) @@ -1208,7 +1209,7 @@ mongo_cc_library( "//src/mongo/db/query/util:stop_token", "//src/mongo/db/traffic_recorder/utils:task_scheduler", "//src/mongo/rpc", - "//src/third_party/abseil-cpp:absl_crc32c", + "@com_google_absl//absl/crc:crc32c", ], ) diff --git a/src/mongo/db/query/compiler/stats/BUILD.bazel b/src/mongo/db/query/compiler/stats/BUILD.bazel index 78e0dad6a84..332e48e67e0 100644 --- a/src/mongo/db/query/compiler/stats/BUILD.bazel +++ b/src/mongo/db/query/compiler/stats/BUILD.bazel @@ -113,6 +113,7 @@ mongo_cc_library( "//src/mongo:base", "//src/mongo/db:sbe_values", "//src/mongo/stdx", + "@com_google_absl//absl/random:distributions", ], ) diff --git a/src/mongo/transport/grpc/BUILD.bazel b/src/mongo/transport/grpc/BUILD.bazel index 024d2bcf4fb..953af65c217 100644 --- a/src/mongo/transport/grpc/BUILD.bazel +++ b/src/mongo/transport/grpc/BUILD.bazel @@ -240,9 +240,9 @@ mongo_cc_unit_test( "core_test_cc_grpc", "core_test_strip_prefix_cc_grpc", "//src/mongo:base", - "//src/third_party/abseil-cpp:absl_status", "//src/third_party/grpc:grpc++_reflection", "//src/third_party/protobuf", + "@com_google_absl//absl/status", ], ) diff --git a/src/third_party/abseil-cpp/BUILD.bazel b/src/third_party/abseil-cpp/BUILD.bazel deleted file mode 100644 index 1396363a6cb..00000000000 --- a/src/third_party/abseil-cpp/BUILD.bazel +++ /dev/null @@ -1,2507 +0,0 @@ -# AUTO-GENERATED FILE DO NOT MANUALLY EDIT -# generated from the parse_libs_from_ninja.py script in scripts directory via `python ./parse_libs_from_ninja.py` -load("//bazel:mongo_src_rules.bzl", "mongo_cc_library") - -package(default_visibility = ["//visibility:public"]) - -ABSEIL_HEADERS = [ - "dist/absl/algorithm/algorithm.h", - "dist/absl/algorithm/container.h", - "dist/absl/base/attributes.h", - "dist/absl/base/call_once.h", - "dist/absl/base/casts.h", - "dist/absl/base/config.h", - "dist/absl/base/const_init.h", - "dist/absl/base/dynamic_annotations.h", - "dist/absl/base/fast_type_id.h", - "dist/absl/base/internal/atomic_hook.h", - "dist/absl/base/internal/atomic_hook_test_helper.h", - "dist/absl/base/internal/cycleclock.h", - "dist/absl/base/internal/cycleclock_config.h", - "dist/absl/base/internal/direct_mmap.h", - "dist/absl/base/internal/dynamic_annotations.h", - "dist/absl/base/internal/endian.h", - "dist/absl/base/internal/errno_saver.h", - "dist/absl/base/internal/exception_safety_testing.h", - "dist/absl/base/internal/exception_testing.h", - "dist/absl/base/internal/hide_ptr.h", - "dist/absl/base/internal/identity.h", - "dist/absl/base/internal/iterator_traits.h", - "dist/absl/base/internal/iterator_traits_test_helper.h", - "dist/absl/base/internal/low_level_alloc.h", - "dist/absl/base/internal/low_level_scheduling.h", - "dist/absl/base/internal/nullability_deprecated.h", - "dist/absl/base/internal/per_thread_tls.h", - "dist/absl/base/internal/poison.h", - "dist/absl/base/internal/pretty_function.h", - "dist/absl/base/internal/raw_logging.h", - "dist/absl/base/internal/scheduling_mode.h", - "dist/absl/base/internal/scoped_set_env.h", - "dist/absl/base/internal/spinlock.h", - "dist/absl/base/internal/spinlock_akaros.inc", - "dist/absl/base/internal/spinlock_linux.inc", - "dist/absl/base/internal/spinlock_posix.inc", - "dist/absl/base/internal/spinlock_wait.h", - "dist/absl/base/internal/spinlock_win32.inc", - "dist/absl/base/internal/strerror.h", - "dist/absl/base/internal/sysinfo.h", - "dist/absl/base/internal/thread_identity.h", - "dist/absl/base/internal/throw_delegate.h", - "dist/absl/base/internal/tracing.h", - "dist/absl/base/internal/tsan_mutex_interface.h", - "dist/absl/base/internal/unaligned_access.h", - "dist/absl/base/internal/unscaledcycleclock.h", - "dist/absl/base/internal/unscaledcycleclock_config.h", - "dist/absl/base/log_severity.h", - "dist/absl/base/macros.h", - "dist/absl/base/no_destructor.h", - "dist/absl/base/nullability.h", - "dist/absl/base/optimization.h", - "dist/absl/base/options.h", - "dist/absl/base/policy_checks.h", - "dist/absl/base/port.h", - "dist/absl/base/prefetch.h", - "dist/absl/base/thread_annotations.h", - "dist/absl/cleanup/cleanup.h", - "dist/absl/cleanup/internal/cleanup.h", - "dist/absl/container/btree_map.h", - "dist/absl/container/btree_set.h", - "dist/absl/container/btree_test.h", - "dist/absl/container/fixed_array.h", - "dist/absl/container/flat_hash_map.h", - "dist/absl/container/flat_hash_set.h", - "dist/absl/container/hash_container_defaults.h", - "dist/absl/container/inlined_vector.h", - "dist/absl/container/internal/btree.h", - "dist/absl/container/internal/btree_container.h", - "dist/absl/container/internal/common.h", - "dist/absl/container/internal/common_policy_traits.h", - "dist/absl/container/internal/compressed_tuple.h", - "dist/absl/container/internal/container_memory.h", - "dist/absl/container/internal/hash_function_defaults.h", - "dist/absl/container/internal/hash_generator_testing.h", - "dist/absl/container/internal/hash_policy_testing.h", - "dist/absl/container/internal/hash_policy_traits.h", - "dist/absl/container/internal/hashtable_control_bytes.h", - "dist/absl/container/internal/hashtable_debug.h", - "dist/absl/container/internal/hashtable_debug_hooks.h", - "dist/absl/container/internal/hashtablez_sampler.h", - "dist/absl/container/internal/inlined_vector.h", - "dist/absl/container/internal/layout.h", - "dist/absl/container/internal/node_slot_policy.h", - "dist/absl/container/internal/raw_hash_map.h", - "dist/absl/container/internal/raw_hash_set.h", - "dist/absl/container/internal/raw_hash_set_resize_impl.h", - "dist/absl/container/internal/test_allocator.h", - "dist/absl/container/internal/test_instance_tracker.h", - "dist/absl/container/internal/tracked.h", - "dist/absl/container/internal/unordered_map_constructor_test.h", - "dist/absl/container/internal/unordered_map_lookup_test.h", - "dist/absl/container/internal/unordered_map_members_test.h", - "dist/absl/container/internal/unordered_map_modifiers_test.h", - "dist/absl/container/internal/unordered_set_constructor_test.h", - "dist/absl/container/internal/unordered_set_lookup_test.h", - "dist/absl/container/internal/unordered_set_members_test.h", - "dist/absl/container/internal/unordered_set_modifiers_test.h", - "dist/absl/container/node_hash_map.h", - "dist/absl/container/node_hash_set.h", - "dist/absl/crc/crc32c.h", - "dist/absl/crc/internal/cpu_detect.h", - "dist/absl/crc/internal/crc.h", - "dist/absl/crc/internal/crc32_x86_arm_combined_simd.h", - "dist/absl/crc/internal/crc32c.h", - "dist/absl/crc/internal/crc32c_inline.h", - "dist/absl/crc/internal/crc_cord_state.h", - "dist/absl/crc/internal/crc_internal.h", - "dist/absl/crc/internal/crc_memcpy.h", - "dist/absl/crc/internal/non_temporal_arm_intrinsics.h", - "dist/absl/crc/internal/non_temporal_memcpy.h", - "dist/absl/debugging/failure_signal_handler.h", - "dist/absl/debugging/internal/address_is_readable.h", - "dist/absl/debugging/internal/addresses.h", - "dist/absl/debugging/internal/bounded_utf8_length_sequence.h", - "dist/absl/debugging/internal/decode_rust_punycode.h", - "dist/absl/debugging/internal/demangle.h", - "dist/absl/debugging/internal/demangle_rust.h", - "dist/absl/debugging/internal/elf_mem_image.h", - "dist/absl/debugging/internal/examine_stack.h", - "dist/absl/debugging/internal/stack_consumption.h", - "dist/absl/debugging/internal/stacktrace_aarch64-inl.inc", - "dist/absl/debugging/internal/stacktrace_arm-inl.inc", - "dist/absl/debugging/internal/stacktrace_config.h", - "dist/absl/debugging/internal/stacktrace_generic-inl.inc", - "dist/absl/debugging/internal/stacktrace_powerpc-inl.inc", - "dist/absl/debugging/internal/stacktrace_riscv-inl.inc", - "dist/absl/debugging/internal/stacktrace_unimplemented-inl.inc", - "dist/absl/debugging/internal/stacktrace_win32-inl.inc", - "dist/absl/debugging/internal/stacktrace_x86-inl.inc", - "dist/absl/debugging/internal/symbolize.h", - "dist/absl/debugging/internal/utf8_for_code_point.h", - "dist/absl/debugging/internal/vdso_support.h", - "dist/absl/debugging/leak_check.h", - "dist/absl/debugging/stacktrace.h", - "dist/absl/debugging/symbolize.h", - "dist/absl/debugging/symbolize_darwin.inc", - "dist/absl/debugging/symbolize_elf.inc", - "dist/absl/debugging/symbolize_emscripten.inc", - "dist/absl/debugging/symbolize_unimplemented.inc", - "dist/absl/debugging/symbolize_win32.inc", - "dist/absl/flags/commandlineflag.h", - "dist/absl/flags/config.h", - "dist/absl/flags/declare.h", - "dist/absl/flags/flag.h", - "dist/absl/flags/internal/commandlineflag.h", - "dist/absl/flags/internal/flag.h", - "dist/absl/flags/internal/parse.h", - "dist/absl/flags/internal/path_util.h", - "dist/absl/flags/internal/private_handle_accessor.h", - "dist/absl/flags/internal/program_name.h", - "dist/absl/flags/internal/registry.h", - "dist/absl/flags/internal/sequence_lock.h", - "dist/absl/flags/internal/usage.h", - "dist/absl/flags/marshalling.h", - "dist/absl/flags/parse.h", - "dist/absl/flags/reflection.h", - "dist/absl/flags/usage.h", - "dist/absl/flags/usage_config.h", - "dist/absl/functional/any_invocable.h", - "dist/absl/functional/bind_front.h", - "dist/absl/functional/function_ref.h", - "dist/absl/functional/internal/any_invocable.h", - "dist/absl/functional/internal/front_binder.h", - "dist/absl/functional/internal/function_ref.h", - "dist/absl/functional/overload.h", - "dist/absl/hash/hash.h", - "dist/absl/hash/hash_testing.h", - "dist/absl/hash/internal/city.h", - "dist/absl/hash/internal/hash.h", - "dist/absl/hash/internal/hash_test.h", - "dist/absl/hash/internal/low_level_hash.h", - "dist/absl/hash/internal/spy_hash_state.h", - "dist/absl/hash/internal/weakly_mixed_integer.h", - "dist/absl/log/absl_check.h", - "dist/absl/log/absl_log.h", - "dist/absl/log/absl_vlog_is_on.h", - "dist/absl/log/log_basic_test_impl.inc", - "dist/absl/log/check.h", - "dist/absl/log/check_test_impl.inc", - "dist/absl/log/die_if_null.h", - "dist/absl/log/flags.h", - "dist/absl/log/globals.h", - "dist/absl/log/initialize.h", - "dist/absl/log/internal/append_truncated.h", - "dist/absl/log/internal/check_impl.h", - "dist/absl/log/internal/check_op.h", - "dist/absl/log/internal/conditions.h", - "dist/absl/log/internal/config.h", - "dist/absl/log/internal/flags.h", - "dist/absl/log/internal/fnmatch.h", - "dist/absl/log/internal/globals.h", - "dist/absl/log/internal/log_format.h", - "dist/absl/log/internal/log_impl.h", - "dist/absl/log/internal/log_message.h", - "dist/absl/log/internal/log_sink_set.h", - "dist/absl/log/internal/nullguard.h", - "dist/absl/log/internal/nullstream.h", - "dist/absl/log/internal/proto.h", - "dist/absl/log/internal/strip.h", - "dist/absl/log/internal/structured.h", - "dist/absl/log/internal/structured_proto.h", - "dist/absl/log/internal/test_actions.h", - "dist/absl/log/internal/test_helpers.h", - "dist/absl/log/internal/test_matchers.h", - "dist/absl/log/internal/vlog_config.h", - "dist/absl/log/internal/voidify.h", - "dist/absl/log/log.h", - "dist/absl/log/log_entry.h", - "dist/absl/log/log_sink.h", - "dist/absl/log/log_sink_registry.h", - "dist/absl/log/log_streamer.h", - "dist/absl/log/scoped_mock_log.h", - "dist/absl/log/structured.h", - "dist/absl/log/vlog_is_on.h", - "dist/absl/memory/memory.h", - "dist/absl/meta/type_traits.h", - "dist/absl/numeric/bits.h", - "dist/absl/numeric/int128.h", - "dist/absl/numeric/int128_have_intrinsic.inc", - "dist/absl/numeric/int128_no_intrinsic.inc", - "dist/absl/numeric/internal/bits.h", - "dist/absl/numeric/internal/representation.h", - "dist/absl/profiling/internal/exponential_biased.h", - "dist/absl/profiling/internal/periodic_sampler.h", - "dist/absl/profiling/internal/sample_recorder.h", - "dist/absl/random/bernoulli_distribution.h", - "dist/absl/random/beta_distribution.h", - "dist/absl/random/bit_gen_ref.h", - "dist/absl/random/discrete_distribution.h", - "dist/absl/random/distributions.h", - "dist/absl/random/exponential_distribution.h", - "dist/absl/random/gaussian_distribution.h", - "dist/absl/random/internal/chi_square.h", - "dist/absl/random/internal/distribution_caller.h", - "dist/absl/random/internal/distribution_test_util.h", - "dist/absl/random/internal/entropy_pool.h", - "dist/absl/random/internal/explicit_seed_seq.h", - "dist/absl/random/internal/fast_uniform_bits.h", - "dist/absl/random/internal/fastmath.h", - "dist/absl/random/internal/generate_real.h", - "dist/absl/random/internal/iostream_state_saver.h", - "dist/absl/random/internal/mock_helpers.h", - "dist/absl/random/internal/mock_overload_set.h", - "dist/absl/random/internal/mock_validators.h", - "dist/absl/random/internal/nanobenchmark.h", - "dist/absl/random/internal/nonsecure_base.h", - "dist/absl/random/internal/pcg_engine.h", - "dist/absl/random/internal/platform.h", - "dist/absl/random/internal/randen.h", - "dist/absl/random/internal/randen_detect.h", - "dist/absl/random/internal/randen_engine.h", - "dist/absl/random/internal/randen_hwaes.h", - "dist/absl/random/internal/randen_slow.h", - "dist/absl/random/internal/randen_traits.h", - "dist/absl/random/internal/salted_seed_seq.h", - "dist/absl/random/internal/seed_material.h", - "dist/absl/random/internal/sequence_urbg.h", - "dist/absl/random/internal/traits.h", - "dist/absl/random/internal/uniform_helper.h", - "dist/absl/random/internal/wide_multiply.h", - "dist/absl/random/log_uniform_int_distribution.h", - "dist/absl/random/mock_distributions.h", - "dist/absl/random/mocking_bit_gen.h", - "dist/absl/random/poisson_distribution.h", - "dist/absl/random/random.h", - "dist/absl/random/seed_gen_exception.h", - "dist/absl/random/seed_sequences.h", - "dist/absl/random/uniform_int_distribution.h", - "dist/absl/random/uniform_real_distribution.h", - "dist/absl/random/zipf_distribution.h", - "dist/absl/status/internal/status_internal.h", - "dist/absl/status/internal/status_matchers.h", - "dist/absl/status/internal/statusor_internal.h", - "dist/absl/status/status.h", - "dist/absl/status/status_matchers.h", - "dist/absl/status/status_payload_printer.h", - "dist/absl/status/statusor.h", - "dist/absl/strings/ascii.h", - "dist/absl/strings/charconv.h", - "dist/absl/strings/charset.h", - "dist/absl/strings/cord.h", - "dist/absl/strings/cord_analysis.h", - "dist/absl/strings/cord_buffer.h", - "dist/absl/strings/cord_test_helpers.h", - "dist/absl/strings/cordz_test_helpers.h", - "dist/absl/strings/escaping.h", - "dist/absl/strings/has_absl_stringify.h", - "dist/absl/strings/has_ostream_operator.h", - "dist/absl/strings/internal/charconv_bigint.h", - "dist/absl/strings/internal/charconv_parse.h", - "dist/absl/strings/internal/cord_data_edge.h", - "dist/absl/strings/internal/cord_internal.h", - "dist/absl/strings/internal/cord_rep_btree.h", - "dist/absl/strings/internal/cord_rep_btree_navigator.h", - "dist/absl/strings/internal/cord_rep_btree_reader.h", - "dist/absl/strings/internal/cord_rep_consume.h", - "dist/absl/strings/internal/cord_rep_crc.h", - "dist/absl/strings/internal/cord_rep_flat.h", - "dist/absl/strings/internal/cord_rep_test_util.h", - "dist/absl/strings/internal/cordz_functions.h", - "dist/absl/strings/internal/cordz_handle.h", - "dist/absl/strings/internal/cordz_info.h", - "dist/absl/strings/internal/cordz_sample_token.h", - "dist/absl/strings/internal/cordz_statistics.h", - "dist/absl/strings/internal/cordz_update_scope.h", - "dist/absl/strings/internal/cordz_update_tracker.h", - "dist/absl/strings/internal/damerau_levenshtein_distance.h", - "dist/absl/strings/internal/escaping.h", - "dist/absl/strings/internal/escaping_test_common.h", - "dist/absl/strings/internal/memutil.h", - "dist/absl/strings/internal/numbers_test_common.h", - "dist/absl/strings/internal/ostringstream.h", - "dist/absl/strings/internal/pow10_helper.h", - "dist/absl/strings/internal/resize_uninitialized.h", - "dist/absl/strings/internal/stl_type_traits.h", - "dist/absl/strings/internal/str_format/arg.h", - "dist/absl/strings/internal/str_format/bind.h", - "dist/absl/strings/internal/str_format/checker.h", - "dist/absl/strings/internal/str_format/constexpr_parser.h", - "dist/absl/strings/internal/str_format/extension.h", - "dist/absl/strings/internal/str_format/float_conversion.h", - "dist/absl/strings/internal/str_format/output.h", - "dist/absl/strings/internal/str_format/parser.h", - "dist/absl/strings/internal/str_join_internal.h", - "dist/absl/strings/internal/str_split_internal.h", - "dist/absl/strings/internal/string_constant.h", - "dist/absl/strings/internal/stringify_sink.h", - "dist/absl/strings/internal/utf8.h", - "dist/absl/strings/match.h", - "dist/absl/strings/numbers.h", - "dist/absl/strings/str_cat.h", - "dist/absl/strings/str_format.h", - "dist/absl/strings/str_join.h", - "dist/absl/strings/str_replace.h", - "dist/absl/strings/str_split.h", - "dist/absl/strings/string_view.h", - "dist/absl/strings/strip.h", - "dist/absl/strings/substitute.h", - "dist/absl/synchronization/barrier.h", - "dist/absl/synchronization/blocking_counter.h", - "dist/absl/synchronization/internal/create_thread_identity.h", - "dist/absl/synchronization/internal/futex.h", - "dist/absl/synchronization/internal/futex_waiter.h", - "dist/absl/synchronization/internal/graphcycles.h", - "dist/absl/synchronization/internal/kernel_timeout.h", - "dist/absl/synchronization/internal/per_thread_sem.h", - "dist/absl/synchronization/internal/pthread_waiter.h", - "dist/absl/synchronization/internal/sem_waiter.h", - "dist/absl/synchronization/internal/stdcpp_waiter.h", - "dist/absl/synchronization/internal/thread_pool.h", - "dist/absl/synchronization/internal/waiter.h", - "dist/absl/synchronization/internal/waiter_base.h", - "dist/absl/synchronization/internal/win32_waiter.h", - "dist/absl/synchronization/mutex.h", - "dist/absl/synchronization/notification.h", - "dist/absl/time/civil_time.h", - "dist/absl/time/clock.h", - "dist/absl/time/internal/cctz/include/cctz/civil_time.h", - "dist/absl/time/internal/cctz/include/cctz/civil_time_detail.h", - "dist/absl/time/internal/cctz/include/cctz/time_zone.h", - "dist/absl/time/internal/cctz/include/cctz/zone_info_source.h", - "dist/absl/time/internal/cctz/src/time_zone_fixed.h", - "dist/absl/time/internal/cctz/src/time_zone_if.h", - "dist/absl/time/internal/cctz/src/time_zone_impl.h", - "dist/absl/time/internal/cctz/src/time_zone_info.h", - "dist/absl/time/internal/cctz/src/time_zone_libc.h", - "dist/absl/time/internal/cctz/src/time_zone_posix.h", - "dist/absl/time/internal/cctz/src/tzfile.h", - "dist/absl/time/internal/get_current_time_chrono.inc", - "dist/absl/time/internal/get_current_time_posix.inc", - "dist/absl/time/internal/test_util.h", - "dist/absl/time/time.h", - "dist/absl/types/any.h", - "dist/absl/types/compare.h", - "dist/absl/types/internal/span.h", - "dist/absl/types/optional.h", - "dist/absl/types/span.h", - "dist/absl/types/variant.h", - "dist/absl/utility/utility.h", -] - -mongo_cc_library(name = "absl_local_repo_deps") - -ABSEIL_SKIP_GLOBAL_DEPS = [ - # This is a globally injected dependency. - # Skip depending on all globally injected dependencies to avoid circular dependencies. - "allocator", - "libunwind", -] - -# absl_strerror added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_strerror", - srcs = [ - "dist/absl/base/internal/strerror.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_scoped_set_env added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_scoped_set_env", - srcs = [ - "dist/absl/base/internal/scoped_set_env.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_log_severity", - ":absl_raw_logging_internal", - ], -) - -# absl_spinlock_wait is an explicit dependency to the server build -mongo_cc_library( - name = "absl_spinlock_wait", - srcs = [ - "dist/absl/base/internal/spinlock_wait.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_log_severity is an explicit dependency to the server build -mongo_cc_library( - name = "absl_log_severity", - srcs = [ - "dist/absl/base/log_severity.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_base is an explicit dependency to the server build -mongo_cc_library( - name = "absl_base", - srcs = [ - "dist/absl/base/internal/cycleclock.cc", - "dist/absl/base/internal/spinlock.cc", - "dist/absl/base/internal/sysinfo.cc", - "dist/absl/base/internal/thread_identity.cc", - "dist/absl/base/internal/unscaledcycleclock.cc", - ], - hdrs = ABSEIL_HEADERS, - copts = select({ - "//bazel/config:ppc_or_s390x": ["-Wno-sign-conversion"], - "//conditions:default": [], - }), - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_raw_logging_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_raw_logging_internal", - srcs = [ - "dist/absl/base/internal/raw_logging.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_log_severity", - ], -) - -# absl_malloc_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_malloc_internal", - srcs = [ - "dist/absl/base/internal/low_level_alloc.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_throw_delegate is an explicit dependency to the server build -mongo_cc_library( - name = "absl_throw_delegate", - srcs = [ - "dist/absl/base/internal/throw_delegate.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_log_severity", - ":absl_raw_logging_internal", - ], -) - -# absl_raw_hash_set is an explicit dependency to the server build -mongo_cc_library( - name = "absl_raw_hash_set", - srcs = [ - "dist/absl/container/internal/raw_hash_set.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_hashtablez_sampler", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_hashtablez_sampler is an explicit dependency to the server build -mongo_cc_library( - name = "absl_hashtablez_sampler", - srcs = [ - "dist/absl/container/internal/hashtablez_sampler.cc", - "dist/absl/container/internal/hashtablez_sampler_force_weak_definition.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_crc_cord_state added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_crc_cord_state", - srcs = [ - "dist/absl/crc/internal/crc_cord_state.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_crc32c", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_crc32c added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_crc32c", - srcs = [ - "dist/absl/crc/crc32c.cc", - "dist/absl/crc/internal/crc_memcpy_fallback.cc", - "dist/absl/crc/internal/crc_memcpy_x86_arm_combined.cc", - "dist/absl/crc/internal/crc_non_temporal_memcpy.cc", - ], - hdrs = ABSEIL_HEADERS, - copts = select({ - "//bazel/config:gcc_or_clang": ["-Wno-ignored-attributes"], - "//conditions:default": [], - }), - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_crc_internal added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_crc_internal", - srcs = [ - "dist/absl/crc/internal/crc.cc", - "dist/absl/crc/internal/crc_x86_arm_combined.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_crc_cpu_detect", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_crc_cpu_detect added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_crc_cpu_detect", - srcs = [ - "dist/absl/crc/internal/cpu_detect.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_stacktrace is an explicit dependency to the server build -mongo_cc_library( - name = "absl_stacktrace", - srcs = [ - "dist/absl/debugging/stacktrace.cc", - ], - hdrs = ABSEIL_HEADERS, - copts = select({ - "//bazel/config:ppc_or_s390x": ["-Wno-shorten-64-to-32"], - "//conditions:default": [], - }), - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_debugging_internal", - ":absl_log_severity", - ":absl_raw_logging_internal", - ], -) - -# absl_examine_stack added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_examine_stack", - srcs = [ - "dist/absl/debugging/internal/examine_stack.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_throw_delegate", - ], -) - -# absl_symbolize is an explicit dependency to the server build -mongo_cc_library( - name = "absl_symbolize", - srcs = [ - "dist/absl/debugging/symbolize.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_debugging_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_debugging_internal", - srcs = [ - "dist/absl/debugging/internal/address_is_readable.cc", - "dist/absl/debugging/internal/elf_mem_image.cc", - "dist/absl/debugging/internal/vdso_support.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_log_severity", - ":absl_raw_logging_internal", - ], -) - -# absl_demangle_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_demangle_internal", - srcs = [ - "dist/absl/debugging/internal/decode_rust_punycode.cc", - "dist/absl/debugging/internal/demangle.cc", - "dist/absl/debugging/internal/demangle_rust.cc", - "dist/absl/debugging/internal/utf8_for_code_point.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_leak_check added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_leak_check", - srcs = [ - "dist/absl/debugging/leak_check.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_failure_signal_handler added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_failure_signal_handler", - srcs = [ - "dist/absl/debugging/failure_signal_handler.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_examine_stack", - ":absl_int128", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_throw_delegate", - ], -) - -# absl_flags_config added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_config", - srcs = [ - "dist/absl/flags/usage_config.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_flags_program_name", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_flags_marshalling added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_marshalling", - srcs = [ - "dist/absl/flags/marshalling.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_flags_private_handle_accessor added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_private_handle_accessor", - srcs = [ - "dist/absl/flags/internal/private_handle_accessor.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_flags_commandlineflag_internal added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_commandlineflag_internal", - srcs = [ - "dist/absl/flags/internal/commandlineflag.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_flags_commandlineflag added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_commandlineflag", - srcs = [ - "dist/absl/flags/commandlineflag.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_flags_commandlineflag_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_flags_program_name added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_program_name", - srcs = [ - "dist/absl/flags/internal/program_name.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_flags_reflection added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_reflection", - srcs = [ - "dist/absl/flags/reflection.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_flags_config", - ":absl_flags_private_handle_accessor", - ":absl_flags_program_name", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_hashtablez_sampler", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_hash_set", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_flags_internal added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_internal", - srcs = [ - "dist/absl/flags/internal/flag.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_flags_config", - ":absl_flags_marshalling", - ":absl_flags_program_name", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_flags_usage added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_usage", - srcs = [ - "dist/absl/flags/usage.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_flags_config", - ":absl_flags_internal", - ":absl_flags_marshalling", - ":absl_flags_private_handle_accessor", - ":absl_flags_program_name", - ":absl_flags_reflection", - ":absl_flags_usage_internal", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_hashtablez_sampler", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_hash_set", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_flags_usage_internal added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_usage_internal", - srcs = [ - "dist/absl/flags/internal/usage.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_flags_config", - ":absl_flags_internal", - ":absl_flags_marshalling", - ":absl_flags_private_handle_accessor", - ":absl_flags_program_name", - ":absl_flags_reflection", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_hashtablez_sampler", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_hash_set", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_flags_parse added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_flags_parse", - srcs = [ - "dist/absl/flags/parse.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_flags_config", - ":absl_flags_internal", - ":absl_flags_marshalling", - ":absl_flags_private_handle_accessor", - ":absl_flags_program_name", - ":absl_flags_reflection", - ":absl_flags_usage", - ":absl_flags_usage_internal", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_hashtablez_sampler", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_hash_set", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_low_level_hash is an explicit dependency to the server build -mongo_cc_library( - name = "absl_low_level_hash", - srcs = [ - "dist/absl/hash/internal/low_level_hash.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_city is an explicit dependency to the server build -mongo_cc_library( - name = "absl_city", - srcs = [ - "dist/absl/hash/internal/city.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_hash is an explicit dependency to the server build -mongo_cc_library( - name = "absl_hash", - srcs = [ - "dist/absl/hash/internal/hash.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_int128", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_die_if_null added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_die_if_null", - srcs = [ - "dist/absl/log/die_if_null.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_examine_stack", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_globals", - ":absl_log_internal_conditions", - ":absl_log_internal_format", - ":absl_log_internal_globals", - ":absl_log_internal_log_sink_set", - ":absl_log_internal_message", - ":absl_log_internal_nullguard", - ":absl_log_internal_proto", - ":absl_log_severity", - ":absl_log_sink", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_strerror", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_internal_message added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_message", - srcs = [ - "dist/absl/log/internal/log_message.cc", - "dist/absl/log/internal/structured_proto.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_examine_stack", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_globals", - ":absl_log_internal_format", - ":absl_log_internal_globals", - ":absl_log_internal_log_sink_set", - ":absl_log_internal_nullguard", - ":absl_log_internal_proto", - ":absl_log_severity", - ":absl_log_sink", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_strerror", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_internal_nullguard added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_nullguard", - srcs = [ - "dist/absl/log/internal/nullguard.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_log_internal_globals added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_globals", - srcs = [ - "dist/absl/log/internal/globals.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_internal_log_sink_set added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_log_sink_set", - srcs = [ - "dist/absl/log/internal/log_sink_set.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_globals", - ":absl_log_internal_globals", - ":absl_log_severity", - ":absl_log_sink", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_internal_proto added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_proto", - srcs = [ - "dist/absl/log/internal/proto.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_log_internal_format added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_format", - srcs = [ - "dist/absl/log/internal/log_format.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_int128", - ":absl_log_internal_globals", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_internal_check_op added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_check_op", - srcs = [ - "dist/absl/log/internal/check_op.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_examine_stack", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_leak_check", - ":absl_log_globals", - ":absl_log_internal_format", - ":absl_log_internal_globals", - ":absl_log_internal_log_sink_set", - ":absl_log_internal_message", - ":absl_log_internal_nullguard", - ":absl_log_internal_proto", - ":absl_log_severity", - ":absl_log_sink", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_strerror", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_internal_conditions added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_internal_conditions", - srcs = [ - "dist/absl/log/internal/conditions.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_log_initialize added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_initialize", - srcs = [ - "dist/absl/log/initialize.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_hash", - ":absl_int128", - ":absl_log_globals", - ":absl_log_internal_globals", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_sink added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_sink", - srcs = [ - "dist/absl/log/log_sink.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_log_globals added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_globals", - srcs = [ - "dist/absl/log/globals.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_hash", - ":absl_int128", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_log_flags added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_log_flags", - srcs = [ - "dist/absl/log/flags.cc", - "dist/absl/log/internal/fnmatch.cc", - "dist/absl/log/internal/vlog_config.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_city", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_flags_commandlineflag", - ":absl_flags_commandlineflag_internal", - ":absl_flags_config", - ":absl_flags_internal", - ":absl_flags_marshalling", - ":absl_flags_private_handle_accessor", - ":absl_flags_program_name", - ":absl_flags_reflection", - ":absl_graphcycles_internal", - ":absl_hash", - ":absl_hashtablez_sampler", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_globals", - ":absl_log_severity", - ":absl_low_level_hash", - ":absl_malloc_internal", - ":absl_raw_hash_set", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_int128 is an explicit dependency to the server build -mongo_cc_library( - name = "absl_int128", - srcs = [ - "dist/absl/numeric/int128.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_periodic_sampler added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_periodic_sampler", - srcs = [ - "dist/absl/profiling/internal/periodic_sampler.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_exponential_biased", - ], -) - -# absl_exponential_biased is an explicit dependency to the server build -mongo_cc_library( - name = "absl_exponential_biased", - srcs = [ - "dist/absl/profiling/internal/exponential_biased.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_random_internal_randen_hwaes is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_internal_randen_hwaes", - srcs = [ - "dist/absl/random/internal/randen_detect.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_random_internal_platform", - ":absl_random_internal_randen_hwaes_impl", - ], -) - -# absl_random_internal_seed_material is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_internal_seed_material", - srcs = [ - "dist/absl/random/internal/seed_material.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_random_internal_randen_slow is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_internal_randen_slow", - srcs = [ - "dist/absl/random/internal/randen_slow.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_random_internal_platform", - ], -) - -# absl_random_seed_gen_exception is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_seed_gen_exception", - srcs = [ - "dist/absl/random/seed_gen_exception.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_random_distributions is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_distributions", - srcs = [ - "dist/absl/random/discrete_distribution.cc", - "dist/absl/random/gaussian_distribution.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_random_internal_randen_hwaes_impl is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_internal_randen_hwaes_impl", - srcs = [ - "dist/absl/random/internal/randen_hwaes.cc", - ], - hdrs = ABSEIL_HEADERS, - copts = select({ - "//bazel/config:gcc_or_clang": [ - "-Wno-pass-failed", - ], - "//conditions:default": [], - }) + select({ - "//bazel/config:ppc_or_s390x": [ - "-Wno-deprecate-lax-vec-conv-all", - ], - "//conditions:default": [], - }), - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_random_internal_platform", - ], -) - -# absl_random_seed_sequences is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_seed_sequences", - srcs = [ - "dist/absl/random/internal/entropy_pool.cc", - "dist/absl/random/seed_sequences.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_random_internal_platform", - ":absl_random_internal_randen", - ":absl_random_internal_randen_hwaes", - ":absl_random_internal_randen_hwaes_impl", - ":absl_random_internal_randen_slow", - ":absl_random_internal_seed_material", - ":absl_random_seed_gen_exception", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_random_internal_randen is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_internal_randen", - srcs = [ - "dist/absl/random/internal/randen.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_random_internal_platform", - ":absl_random_internal_randen_hwaes", - ":absl_random_internal_randen_hwaes_impl", - ":absl_random_internal_randen_slow", - ], -) - -# absl_random_internal_distribution_test_util added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_random_internal_distribution_test_util", - srcs = [ - "dist/absl/random/internal/chi_square.cc", - "dist/absl/random/internal/distribution_test_util.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_random_internal_platform is an explicit dependency to the server build -mongo_cc_library( - name = "absl_random_internal_platform", - srcs = [ - "dist/absl/random/internal/randen_round_keys.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_statusor is an explicit dependency to the server build -mongo_cc_library( - name = "absl_statusor", - srcs = [ - "dist/absl/status/statusor.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_status", - ":absl_str_format_internal", - ":absl_strerror", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_status is an explicit dependency to the server build -mongo_cc_library( - name = "absl_status", - srcs = [ - "dist/absl/status/internal/status_internal.cc", - "dist/absl/status/status.cc", - "dist/absl/status/status_payload_printer.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_cord", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_leak_check", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_strerror", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_cord is an explicit dependency to the server build -mongo_cc_library( - name = "absl_cord", - srcs = [ - "dist/absl/strings/cord.cc", - "dist/absl/strings/cord_analysis.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_string_view added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_string_view", - srcs = [ - "dist/absl/strings/string_view.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_throw_delegate", - ], -) - -# absl_strings is an explicit dependency to the server build -mongo_cc_library( - name = "absl_strings", - srcs = [ - "dist/absl/strings/ascii.cc", - "dist/absl/strings/charconv.cc", - "dist/absl/strings/escaping.cc", - "dist/absl/strings/internal/charconv_bigint.cc", - "dist/absl/strings/internal/charconv_parse.cc", - "dist/absl/strings/internal/damerau_levenshtein_distance.cc", - "dist/absl/strings/internal/memutil.cc", - "dist/absl/strings/internal/stringify_sink.cc", - "dist/absl/strings/match.cc", - "dist/absl/strings/numbers.cc", - "dist/absl/strings/str_cat.cc", - "dist/absl/strings/str_replace.cc", - "dist/absl/strings/str_split.cc", - "dist/absl/strings/substitute.cc", - ], - hdrs = ABSEIL_HEADERS, - copts = select({ - "//bazel/config:compiler_type_gcc": ["-Wno-array-bounds"], - "//conditions:default": [], - }), - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_strings_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_strings_internal", - srcs = [ - "dist/absl/strings/internal/escaping.cc", - "dist/absl/strings/internal/ostringstream.cc", - "dist/absl/strings/internal/utf8.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_cordz_functions is an explicit dependency to the server build -mongo_cc_library( - name = "absl_cordz_functions", - srcs = [ - "dist/absl/strings/internal/cordz_functions.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_exponential_biased", - ":absl_log_severity", - ":absl_raw_logging_internal", - ], -) - -# absl_cordz_info is an explicit dependency to the server build -mongo_cc_library( - name = "absl_cordz_info", - srcs = [ - "dist/absl/strings/internal/cordz_info.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_cord_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_cord_internal", - srcs = [ - "dist/absl/strings/internal/cord_internal.cc", - "dist/absl/strings/internal/cord_rep_btree.cc", - "dist/absl/strings/internal/cord_rep_btree_navigator.cc", - "dist/absl/strings/internal/cord_rep_btree_reader.cc", - "dist/absl/strings/internal/cord_rep_consume.cc", - "dist/absl/strings/internal/cord_rep_crc.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_str_format_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_str_format_internal", - srcs = [ - "dist/absl/strings/internal/str_format/arg.cc", - "dist/absl/strings/internal/str_format/bind.cc", - "dist/absl/strings/internal/str_format/extension.cc", - "dist/absl/strings/internal/str_format/float_conversion.cc", - "dist/absl/strings/internal/str_format/output.cc", - "dist/absl/strings/internal/str_format/parser.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ], -) - -# absl_cordz_sample_token added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_cordz_sample_token", - srcs = [ - "dist/absl/strings/internal/cordz_sample_token.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_cord_internal", - ":absl_cordz_functions", - ":absl_cordz_handle", - ":absl_cordz_info", - ":absl_crc32c", - ":absl_crc_cord_state", - ":absl_crc_cpu_detect", - ":absl_crc_internal", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_exponential_biased", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_str_format_internal", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_cordz_handle is an explicit dependency to the server build -mongo_cc_library( - name = "absl_cordz_handle", - srcs = [ - "dist/absl/strings/internal/cordz_handle.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_synchronization", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_synchronization is an explicit dependency to the server build -mongo_cc_library( - name = "absl_synchronization", - srcs = [ - "dist/absl/base/internal/tracing.cc", - "dist/absl/synchronization/barrier.cc", - "dist/absl/synchronization/blocking_counter.cc", - "dist/absl/synchronization/internal/create_thread_identity.cc", - "dist/absl/synchronization/internal/futex_waiter.cc", - "dist/absl/synchronization/internal/per_thread_sem.cc", - "dist/absl/synchronization/internal/pthread_waiter.cc", - "dist/absl/synchronization/internal/sem_waiter.cc", - "dist/absl/synchronization/internal/stdcpp_waiter.cc", - "dist/absl/synchronization/internal/waiter_base.cc", - "dist/absl/synchronization/internal/win32_waiter.cc", - "dist/absl/synchronization/mutex.cc", - "dist/absl/synchronization/notification.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_debugging_internal", - ":absl_demangle_internal", - ":absl_graphcycles_internal", - ":absl_int128", - ":absl_kernel_timeout_internal", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_stacktrace", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_symbolize", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_kernel_timeout_internal added as a dependency of other abseil libraries -mongo_cc_library( - name = "absl_kernel_timeout_internal", - srcs = [ - "dist/absl/synchronization/internal/kernel_timeout.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ":absl_time", - ":absl_time_zone", - ], -) - -# absl_graphcycles_internal is an explicit dependency to the server build -mongo_cc_library( - name = "absl_graphcycles_internal", - srcs = [ - "dist/absl/synchronization/internal/graphcycles.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_log_severity", - ":absl_malloc_internal", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ], -) - -# absl_time_zone is an explicit dependency to the server build -mongo_cc_library( - name = "absl_time_zone", - srcs = [ - "dist/absl/time/internal/cctz/src/time_zone_fixed.cc", - "dist/absl/time/internal/cctz/src/time_zone_format.cc", - "dist/absl/time/internal/cctz/src/time_zone_if.cc", - "dist/absl/time/internal/cctz/src/time_zone_impl.cc", - "dist/absl/time/internal/cctz/src/time_zone_info.cc", - "dist/absl/time/internal/cctz/src/time_zone_libc.cc", - "dist/absl/time/internal/cctz/src/time_zone_lookup.cc", - "dist/absl/time/internal/cctz/src/time_zone_posix.cc", - "dist/absl/time/internal/cctz/src/zone_info_source.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_civil_time is an explicit dependency to the server build -mongo_cc_library( - name = "absl_civil_time", - srcs = [ - "dist/absl/time/internal/cctz/src/civil_time_detail.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, -) - -# absl_time is an explicit dependency to the server build -mongo_cc_library( - name = "absl_time", - srcs = [ - "dist/absl/time/civil_time.cc", - "dist/absl/time/clock.cc", - "dist/absl/time/duration.cc", - "dist/absl/time/format.cc", - "dist/absl/time/time.cc", - ], - hdrs = ABSEIL_HEADERS, - includes = ["dist"], - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS, - deps = [ - ":absl_base", - ":absl_civil_time", - ":absl_int128", - ":absl_log_severity", - ":absl_raw_logging_internal", - ":absl_spinlock_wait", - ":absl_string_view", - ":absl_strings", - ":absl_strings_internal", - ":absl_throw_delegate", - ":absl_time_zone", - ], -) diff --git a/src/third_party/abseil-cpp/scripts/README.md b/src/third_party/abseil-cpp/scripts/README.md index c89a91c350f..5c0f7958310 100644 --- a/src/third_party/abseil-cpp/scripts/README.md +++ b/src/third_party/abseil-cpp/scripts/README.md @@ -9,20 +9,6 @@ To update abseil you should: 1. update the version/repo information in the import.py script 2. remove the existing abseil-cpp/dist directory 3. run the import.sh script -4. run the parse_libs_from_ninja.py - -# Updating the BUILD.bazel generated libraries - -The parse_libs_from_ninja.py will extract specifically requested libraries -from the native abseil build. This list of libraries should be a python list -defined near the top fo the parse_libs_from_ninja.py file. -Update this list if a new set of libraries is required. - -Note that the script works by iteration throught he list of specified libraries, -finding the library one at a time in the ninja file, extracting source files and -dependent libraries, then reiterating untill all specific and dependent libraries -have been found. If a specified library can not be found the script will fail -with exception. # Mongodbtoolchain dependency diff --git a/src/third_party/abseil-cpp/scripts/parse_libs_from_ninja.py b/src/third_party/abseil-cpp/scripts/parse_libs_from_ninja.py deleted file mode 100644 index c7cdfc7e5a2..00000000000 --- a/src/third_party/abseil-cpp/scripts/parse_libs_from_ninja.py +++ /dev/null @@ -1,228 +0,0 @@ -#!/usr/bin/env python3 - -import os -import glob -import pathlib -import subprocess -import logging -import sys -import re - -# This is the list of libraries that are desired to be extracted out of the -# ninja file -target_libs = set( - [ - "absl_bad_optional_access", - "absl_bad_variant_access", - "absl_base", - "absl_city", - "absl_civil_time", - "absl_cord", - "absl_cord_internal", - "absl_cordz_functions", - "absl_cordz_handle", - "absl_cordz_info", - "absl_debugging_internal", - "absl_demangle_internal", - "absl_exponential_biased", - "absl_flags", - "absl_graphcycles_internal", - "absl_hash", - "absl_hashtablez_sampler", - "absl_int128", - "absl_log_severity", - "absl_low_level_hash", - "absl_malloc_internal", - "absl_random_distributions", - "absl_random_internal_platform", - "absl_random_internal_pool_urbg", - "absl_random_internal_randen", - "absl_random_internal_randen_hwaes", - "absl_random_internal_randen_hwaes_impl", - "absl_random_internal_randen_slow", - "absl_random_internal_seed_material", - "absl_random_seed_gen_exception", - "absl_random_seed_sequences", - "absl_raw_hash_set", - "absl_raw_logging_internal", - "absl_spinlock_wait", - "absl_stacktrace", - "absl_status", - "absl_statusor", - "absl_str_format_internal", - "absl_strings", - "absl_strings_internal", - "absl_symbolize", - "absl_synchronization", - "absl_throw_delegate", - "absl_time", - "absl_time_zone", - ] -) - -# this is the path for cmake to use to generate abseil native ninja file. -cmake_bin_path = "/opt/mongodbtoolchain/v4/bin/cmake" - -if sys.platform == "win32" or sys.platform == "darwin": - raise Exception("This script is currently not supported on windows or macos.") - -logging.basicConfig( - filename=os.path.splitext(__file__)[0] + ".log", - filemode="w", - format="%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s", - datefmt="%H:%M:%S", - level=logging.DEBUG, -) - -original_target_libs = target_libs.copy() -logging.info(f"Original list: {original_target_libs}") - -ninja_build_dir = pathlib.Path(__file__).parent.parent / "dist" / "gen_build" -if not os.path.exists(ninja_build_dir): - os.mkdir(ninja_build_dir) - environ = os.environ.copy() - environ["CC"] = "/opt/mongodbtoolchain/v4/bin/gcc" - environ["CXX"] = "/opt/mongodbtoolchain/v4/bin/g++" - subprocess.run( - [cmake_bin_path, "-G", "Ninja", ".."], cwd=ninja_build_dir, check=True, env=environ - ) - -with open(ninja_build_dir / "build.ninja") as fninja: - content = fninja.readlines() - - with open(pathlib.Path(__file__).parent.parent / "BUILD.bazel", "w") as bazel: - - abseil_headers = glob.glob( - str(pathlib.Path(__file__).parent.parent / "dist/absl/**/*.h"), recursive=True - ) + glob.glob( - str(pathlib.Path(__file__).parent.parent / "dist/absl/**/*.inc"), recursive=True - ) - abseil_headers = sorted( - [os.path.relpath(path, pathlib.Path(__file__).parent.parent) for path in abseil_headers] - ) - bazel.write(f"""\ -# AUTO-GENERATED FILE DO NOT MANUALLY EDIT -# generated from the parse_libs_from_ninja.py script in scripts directory via `python ./parse_libs_from_ninja.py` -load("//bazel:mongo_src_rules.bzl", "mongo_cc_library") - -package(default_visibility = ["//visibility:public"]) - -ABSEIL_HEADERS = [ -{os.linesep.join([f" '{hdr}'," for hdr in abseil_headers])} -] - -ABSEIL_SKIP_GLOBAL_DEPS = [ - # This is a globally injected dependency. - # Skip depending on all globally injected dependencies to avoid circular dependencies. - "allocator", - "libunwind", -] - -""") - - # This will loop through the ninja file looking for the specified target libs. - # A pass throught he ninja file may find one ore more libraries but must find - # at least one or else an exception is raised. - # - # For each library found, the dependent libraries are added as libraries to find, and - # so several passes the the ninja file may be required as new dependencies are found. - written_libs = set() - while written_libs != target_libs: - cur_libs_num = len(written_libs) - - for line in content: - # found an interesting line with potential, ninja build edges always start with - # "build {targets}" - if line.startswith("build absl"): - found_target_lib = None - - match = re.search(r"lib(absl_\w+)\.a: CXX_STATIC_LIBRARY_LINKER", line) - if match: - found_target_lib = match[1] - target_libs.add(found_target_lib) - - # if the line does not contain our target lib or we already found this before - # then this line is not interesting and continue on - if not found_target_lib: - continue - if found_target_lib in written_libs: - continue - - # else we have found a new library so lets parse out the source files and dependent - # libraries. Ninja format use spaces as delimiters and $ as an escape. The loop below - # while extract the spaces which should be exacped and put them in the tokens. - raw_tokens = line.split(" ") - tokens = [] - index = 0 - while index < len(raw_tokens): - token = raw_tokens[index] - while token.endswith("$"): - index += 1 - token = token[:-1] - token += raw_tokens[index] - tokens.append(token) - index += 1 - - # the dependent liraries will be listed after the explicit deps separator '||' - try: - deps_token_index = tokens.index("||") - except ValueError: - deps_token_index = len(tokens) - - # The source files should be after the "build" identifier, target name, and rule, - # and before the dependencies for example: - # - # build absl/base/libabsl_strerror.a: CXX_STATIC_LIBRARY_LINKER__strerror_ - # - # This would fail if the build edge listed multiple output targets, but this so far has not been - # the case with abseil. - raw_source_files = tokens[3:deps_token_index] - source_files = [] - - # because the source files are listed object file inputs to the static lib - # we need strip the cmake output dir, and the object file extension - print(f"Found library: {found_target_lib}") - for raw_source in raw_source_files: - path_elems = raw_source.split("/") - path_elems.remove("CMakeFiles") - path_elems.remove(found_target_lib.replace("absl_", "") + ".dir") - - source_files.append(os.path.splitext(os.path.join("dist", *path_elems))[0]) - - # now extract the library dependencies - raw_libdeps = tokens[deps_token_index + 1 :] - libdeps = [] - - for raw_libdep in raw_libdeps: - libdeps.append(f"{os.path.splitext(os.path.basename(raw_libdep))[0][3:]}") - - # When we have found a lib add it to our list of found libs and also - # add any new dependencies we found to our target list. - written_libs.add(found_target_lib) - target_libs.update(libdeps) - - logging.info(f"Found library {found_target_lib}") - logging.info(f"Libbraries left to find: {target_libs.difference(written_libs)}") - - bazel.write(f"""\ -{f'# {found_target_lib} added as a dependency of other abseil libraries' -if found_target_lib not in original_target_libs -else f'# {found_target_lib} is an explicit dependency to the server build'} -mongo_cc_library( - name='{found_target_lib}', - srcs = [ -{os.linesep.join([f" '{source}'," for source in source_files])} - ], - hdrs = ABSEIL_HEADERS, - skip_global_deps = ABSEIL_SKIP_GLOBAL_DEPS,{os.linesep + f" deps = [" + os.linesep + os.linesep.join([f" ':{libdep}'," for libdep in sorted(libdeps)]) + os.linesep +" ]," if libdeps else ""} - includes=['dist'] -) - -""") - - if len(written_libs) == cur_libs_num: - raise Exception( - f"Did not find any more requested libs {target_libs.difference(written_libs)}, " - + "the library must exist in the abseil build, check the build.ninja file " - + "and the parse_lib_from_ninja.log file." - ) diff --git a/src/third_party/grpc/BUILD.bazel b/src/third_party/grpc/BUILD.bazel index 6cf41128698..2fed1a90fba 100644 --- a/src/third_party/grpc/BUILD.bazel +++ b/src/third_party/grpc/BUILD.bazel @@ -951,44 +951,23 @@ mongo_cc_library( includes = ["dist/include"], target_compatible_with = GRPC_TARGET_COMPATIBLE_WITH, deps = [ - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_civil_time", - "//src/third_party/abseil-cpp:absl_cord", - "//src/third_party/abseil-cpp:absl_cord_internal", - "//src/third_party/abseil-cpp:absl_cordz_functions", - "//src/third_party/abseil-cpp:absl_cordz_handle", - "//src/third_party/abseil-cpp:absl_cordz_info", - "//src/third_party/abseil-cpp:absl_debugging_internal", - "//src/third_party/abseil-cpp:absl_demangle_internal", - "//src/third_party/abseil-cpp:absl_exponential_biased", - "//src/third_party/abseil-cpp:absl_flags_internal", - "//src/third_party/abseil-cpp:absl_flags_marshalling", - "//src/third_party/abseil-cpp:absl_flags_reflection", - "//src/third_party/abseil-cpp:absl_graphcycles_internal", - "//src/third_party/abseil-cpp:absl_int128", - "//src/third_party/abseil-cpp:absl_log_severity", - "//src/third_party/abseil-cpp:absl_malloc_internal", - "//src/third_party/abseil-cpp:absl_random_distributions", - "//src/third_party/abseil-cpp:absl_random_internal_platform", - "//src/third_party/abseil-cpp:absl_random_internal_randen", - "//src/third_party/abseil-cpp:absl_random_internal_randen_hwaes", - "//src/third_party/abseil-cpp:absl_random_internal_randen_hwaes_impl", - "//src/third_party/abseil-cpp:absl_random_internal_randen_slow", - "//src/third_party/abseil-cpp:absl_random_internal_seed_material", - "//src/third_party/abseil-cpp:absl_random_seed_gen_exception", - "//src/third_party/abseil-cpp:absl_random_seed_sequences", - "//src/third_party/abseil-cpp:absl_raw_logging_internal", - "//src/third_party/abseil-cpp:absl_spinlock_wait", - "//src/third_party/abseil-cpp:absl_stacktrace", - "//src/third_party/abseil-cpp:absl_status", - "//src/third_party/abseil-cpp:absl_str_format_internal", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_strings_internal", - "//src/third_party/abseil-cpp:absl_symbolize", - "//src/third_party/abseil-cpp:absl_synchronization", - "//src/third_party/abseil-cpp:absl_throw_delegate", - "//src/third_party/abseil-cpp:absl_time", - "//src/third_party/abseil-cpp:absl_time_zone", + "@com_google_absl//absl/base", + "@com_google_absl//absl/base:core_headers", + "@com_google_absl//absl/base:log_severity", + "@com_google_absl//absl/flags:flag", + "@com_google_absl//absl/functional:any_invocable", + "@com_google_absl//absl/functional:bind_front", + "@com_google_absl//absl/log", + "@com_google_absl//absl/log:check", + "@com_google_absl//absl/log:globals", + "@com_google_absl//absl/memory", + "@com_google_absl//absl/random", + "@com_google_absl//absl/status", + "@com_google_absl//absl/strings", + "@com_google_absl//absl/strings:cord", + "@com_google_absl//absl/strings:str_format", + "@com_google_absl//absl/synchronization", + "@com_google_absl//absl/time", ], ) @@ -2760,16 +2739,16 @@ mongo_cc_library( ":upb_collections", ":upb_json", ":upb_textformat", - "//src/third_party/abseil-cpp:absl_city", - "//src/third_party/abseil-cpp:absl_hash", - "//src/third_party/abseil-cpp:absl_hashtablez_sampler", - "//src/third_party/abseil-cpp:absl_low_level_hash", - "//src/third_party/abseil-cpp:absl_random_distributions", - "//src/third_party/abseil-cpp:absl_raw_hash_set", - "//src/third_party/abseil-cpp:absl_statusor", "//src/third_party/cares", "//src/third_party/re2", "//src/third_party/zlib", + "@com_google_absl//absl/container:hashtablez_sampler", + "@com_google_absl//absl/container:raw_hash_set", + "@com_google_absl//absl/hash", + "@com_google_absl//absl/hash:city", + "@com_google_absl//absl/random:bit_gen_ref", + "@com_google_absl//absl/random:distributions", + "@com_google_absl//absl/status:statusor", ], ) @@ -3454,8 +3433,8 @@ mongo_cc_library( deps = [ "channel_arg_names", "gpr_public_hdrs", - "//src/third_party/abseil-cpp:absl_statusor", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/status:statusor", + "@com_google_absl//absl/strings", ], ) @@ -3466,7 +3445,7 @@ mongo_cc_library( ], hdrs = GPR_PUBLIC_HDRS, deps = [ - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/strings", ], ) diff --git a/src/third_party/opentelemetry-cpp/api/BUILD b/src/third_party/opentelemetry-cpp/api/BUILD index 908e14bec21..b1fa5bed21b 100644 --- a/src/third_party/opentelemetry-cpp/api/BUILD +++ b/src/third_party/opentelemetry-cpp/api/BUILD @@ -51,8 +51,8 @@ mongo_cc_library( tags = ["api"], target_compatible_with = OTEL_TARGET_COMPATIBLE_WITH, deps = [ - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base:base", + "@com_google_absl//absl/strings:strings", ], ) diff --git a/src/third_party/opentelemetry-cpp/exporters/otlp/BUILD b/src/third_party/opentelemetry-cpp/exporters/otlp/BUILD index db1acb27d56..ae7fe87f779 100644 --- a/src/third_party/opentelemetry-cpp/exporters/otlp/BUILD +++ b/src/third_party/opentelemetry-cpp/exporters/otlp/BUILD @@ -76,7 +76,7 @@ mongo_cc_library( ], target_compatible_with = OTEL_TARGET_COMPATIBLE_WITH, deps = [ - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/strings:strings", "//src/third_party/nlohmann-json:json", "//src/third_party/opentelemetry-cpp/api", "//src/third_party/opentelemetry-cpp/ext/src/http/client/curl:http_client_curl", @@ -149,7 +149,7 @@ mongo_cc_library( ], target_compatible_with = OTEL_TARGET_COMPATIBLE_WITH, deps = [ - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/strings:strings", "//src/third_party/nlohmann-json:json", "//src/third_party/opentelemetry-cpp/api", "//src/third_party/opentelemetry-cpp/sdk:headers", @@ -221,7 +221,7 @@ mongo_cc_library( ], target_compatible_with = OTEL_TARGET_COMPATIBLE_WITH, deps = [ - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/strings:strings", "//src/third_party/grpc:grpc++", "//src/third_party/nlohmann-json:json", "//src/third_party/opentelemetry-cpp/api", diff --git a/src/third_party/opentelemetry-cpp/patches/0001-Build-system-changes-for-opentelemetry-cpp.patch b/src/third_party/opentelemetry-cpp/patches/0001-Build-system-changes-for-opentelemetry-cpp.patch index 67d7687af31..6bced5b321e 100644 --- a/src/third_party/opentelemetry-cpp/patches/0001-Build-system-changes-for-opentelemetry-cpp.patch +++ b/src/third_party/opentelemetry-cpp/patches/0001-Build-system-changes-for-opentelemetry-cpp.patch @@ -64,8 +64,8 @@ index dfc7d3c6450..dbc3b1d452e 100644 - "@com_google_absl//absl/base", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:variant", -+ "//src/third_party/abseil-cpp:absl_base", -+ "//src/third_party/abseil-cpp:absl_strings", ++ "@com_google_absl//absl/base:base", ++ "@com_google_absl//absl/strings:strings", ], ) @@ -221,7 +221,7 @@ index a2dd8f8c650..b3ddd1924b8 100644 - "@com_github_opentelemetry_proto//:common_proto_cc", - "@com_google_absl//absl/strings", - "@github_nlohmann_json//:json", -+ "//src/third_party/abseil-cpp:absl_strings", ++ "@com_google_absl//absl/strings:strings", + "//src/third_party/nlohmann-json:json", + "//src/third_party/opentelemetry-cpp/api", + "//src/third_party/opentelemetry-cpp/ext/src/http/client/curl:http_client_curl", @@ -283,7 +283,7 @@ index a2dd8f8c650..b3ddd1924b8 100644 - "@com_github_opentelemetry_proto//:common_proto_cc", - "@com_google_absl//absl/strings", - "@github_nlohmann_json//:json", -+ "//src/third_party/abseil-cpp:absl_strings", ++ "@com_google_absl//absl/strings:strings", + "//src/third_party/nlohmann-json:json", + "//src/third_party/opentelemetry-cpp/api", + "//src/third_party/opentelemetry-cpp/sdk:headers", diff --git a/src/third_party/opentelemetry-cpp/patches/0001-SERVER-106258-vendor-OpenTelemetry-gRPC-exporter.patch b/src/third_party/opentelemetry-cpp/patches/0001-SERVER-106258-vendor-OpenTelemetry-gRPC-exporter.patch index 27f44c53939..cd4a3d3263d 100644 --- a/src/third_party/opentelemetry-cpp/patches/0001-SERVER-106258-vendor-OpenTelemetry-gRPC-exporter.patch +++ b/src/third_party/opentelemetry-cpp/patches/0001-SERVER-106258-vendor-OpenTelemetry-gRPC-exporter.patch @@ -36,7 +36,7 @@ index 0ef1a177878..db1acb27d56 100644 + ], + target_compatible_with = OTEL_TARGET_COMPATIBLE_WITH, + deps = [ -+ "//src/third_party/abseil-cpp:absl_strings", ++ "@com_google_absl//absl/strings:strings", + "//src/third_party/grpc:grpc++", + "//src/third_party/nlohmann-json:json", + "//src/third_party/opentelemetry-cpp/api", diff --git a/src/third_party/protobuf/BUILD.bazel b/src/third_party/protobuf/BUILD.bazel index 4170d73512d..3de74696de0 100644 --- a/src/third_party/protobuf/BUILD.bazel +++ b/src/third_party/protobuf/BUILD.bazel @@ -314,21 +314,7 @@ mongo_cc_library( includes = ["dist/third_party/utf8_range"], target_compatible_with = PROTOBUF_TARGET_COMPATIBLE_WITH, deps = [ - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_debugging_internal", - "//src/third_party/abseil-cpp:absl_die_if_null", - "//src/third_party/abseil-cpp:absl_hash", - "//src/third_party/abseil-cpp:absl_log_initialize", - "//src/third_party/abseil-cpp:absl_log_internal_check_op", - "//src/third_party/abseil-cpp:absl_log_internal_message", - "//src/third_party/abseil-cpp:absl_log_severity", - "//src/third_party/abseil-cpp:absl_raw_hash_set", - "//src/third_party/abseil-cpp:absl_status", - "//src/third_party/abseil-cpp:absl_statusor", - "//src/third_party/abseil-cpp:absl_str_format_internal", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_synchronization", - "//src/third_party/abseil-cpp:absl_time", + "@com_google_absl//absl/strings", ], ) @@ -421,22 +407,21 @@ mongo_cc_library( target_compatible_with = PROTOBUF_TARGET_COMPATIBLE_WITH, deps = [ ":utf8_validity", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_debugging_internal", - "//src/third_party/abseil-cpp:absl_die_if_null", - "//src/third_party/abseil-cpp:absl_hash", - "//src/third_party/abseil-cpp:absl_log_initialize", - "//src/third_party/abseil-cpp:absl_log_internal_check_op", - "//src/third_party/abseil-cpp:absl_log_internal_message", - "//src/third_party/abseil-cpp:absl_log_severity", - "//src/third_party/abseil-cpp:absl_raw_hash_set", - "//src/third_party/abseil-cpp:absl_status", - "//src/third_party/abseil-cpp:absl_statusor", - "//src/third_party/abseil-cpp:absl_str_format_internal", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_synchronization", - "//src/third_party/abseil-cpp:absl_time", "//src/third_party/zlib", + "@com_google_absl//absl/base", + "@com_google_absl//absl/base:dynamic_annotations", + "@com_google_absl//absl/container:btree", + "@com_google_absl//absl/container:flat_hash_map", + "@com_google_absl//absl/container:flat_hash_set", + "@com_google_absl//absl/hash", + "@com_google_absl//absl/log:absl_check", + "@com_google_absl//absl/log:absl_log", + "@com_google_absl//absl/log:die_if_null", + "@com_google_absl//absl/status", + "@com_google_absl//absl/status:statusor", + "@com_google_absl//absl/strings:internal", + "@com_google_absl//absl/synchronization", + "@com_google_absl//absl/time", ], ) @@ -563,9 +548,9 @@ mongo_cc_library( target_compatible_with = PROTOBUF_TARGET_COMPATIBLE_WITH, deps = [ "protobuf", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_raw_hash_set", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base", + "@com_google_absl//absl/container:raw_hash_set", + "@com_google_absl//absl/strings", ], ) @@ -580,5 +565,6 @@ mongo_cc_binary( deps = [ "protobuf", "protoc", + "@com_google_absl//absl/log:initialize", ], ) diff --git a/src/third_party/re2/BUILD.bazel b/src/third_party/re2/BUILD.bazel index 840d50567d0..389013ac074 100644 --- a/src/third_party/re2/BUILD.bazel +++ b/src/third_party/re2/BUILD.bazel @@ -79,12 +79,12 @@ mongo_cc_library( "//conditions:default": ["@platforms//:incompatible"], }), deps = [ - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_log_internal_check_op", - "//src/third_party/abseil-cpp:absl_log_internal_message", - "//src/third_party/abseil-cpp:absl_raw_hash_set", - "//src/third_party/abseil-cpp:absl_str_format_internal", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_synchronization", + "@com_google_absl//absl/base", + "@com_google_absl//absl/container:flat_hash_map", + "@com_google_absl//absl/container:flat_hash_set", + "@com_google_absl//absl/log:absl_check", + "@com_google_absl//absl/log:absl_log", + "@com_google_absl//absl/strings", + "@com_google_absl//absl/synchronization", ], ) diff --git a/src/third_party/tcmalloc/BUILD.bazel b/src/third_party/tcmalloc/BUILD.bazel index 6c4c282980a..3742d1b7d37 100644 --- a/src/third_party/tcmalloc/BUILD.bazel +++ b/src/third_party/tcmalloc/BUILD.bazel @@ -174,11 +174,11 @@ mongo_cc_library( "tcmalloc_malloc_extension", "tcmalloc_malloc_tracing_extension", "tcmalloc_new_extension", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_stacktrace", - "//src/third_party/abseil-cpp:absl_status", - "//src/third_party/abseil-cpp:absl_statusor", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base", + "@com_google_absl//absl/debugging:stacktrace", + "@com_google_absl//absl/status", + "@com_google_absl//absl/status:statusor", + "@com_google_absl//absl/strings", ], ) @@ -198,8 +198,8 @@ mongo_cc_library( "tcmalloc_internal_logging", "tcmalloc_internal_sysinfo", "tcmalloc_internal_util", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base", + "@com_google_absl//absl/strings", ], ) @@ -215,7 +215,7 @@ mongo_cc_library( local_defines = TCMALLOC_DEFINES, skip_global_deps = TCMALLOC_SKIP_GLOBAL_DEPS, target_compatible_with = PLATFORM_SUPPORTED, - deps = ["//src/third_party/abseil-cpp:absl_base"], + deps = ["@com_google_absl//absl/base"], ) mongo_cc_library( @@ -233,11 +233,11 @@ mongo_cc_library( deps = [ "tcmalloc_internal_environment", "tcmalloc_malloc_extension", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_stacktrace", - "//src/third_party/abseil-cpp:absl_str_format_internal", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_time", + "@com_google_absl//absl/base", + "@com_google_absl//absl/debugging:stacktrace", + "@com_google_absl//absl/strings", + "@com_google_absl//absl/strings:str_format", + "@com_google_absl//absl/time", ], ) @@ -257,7 +257,7 @@ mongo_cc_library( "tcmalloc_internal_logging", "tcmalloc_internal_page_size", "tcmalloc_internal_util", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/strings", ], ) @@ -275,7 +275,7 @@ mongo_cc_library( target_compatible_with = PLATFORM_SUPPORTED, deps = [ "tcmalloc_internal_page_size", - "//src/third_party/abseil-cpp:absl_base", + "@com_google_absl//absl/base", ], ) @@ -296,8 +296,8 @@ mongo_cc_library( "tcmalloc_internal_logging", "tcmalloc_internal_percpu", "tcmalloc_internal_util", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base", + "@com_google_absl//absl/strings", ], ) @@ -314,7 +314,7 @@ mongo_cc_library( skip_global_deps = TCMALLOC_SKIP_GLOBAL_DEPS, target_compatible_with = PLATFORM_SUPPORTED, deps = [ - "//src/third_party/abseil-cpp:absl_base", + "@com_google_absl//absl/base", ], ) @@ -340,7 +340,7 @@ mongo_cc_library( "tcmalloc_internal_logging", "tcmalloc_internal_sysinfo", "tcmalloc_internal_util", - "//src/third_party/abseil-cpp:absl_base", + "@com_google_absl//absl/base", ], ) @@ -358,8 +358,8 @@ mongo_cc_library( target_compatible_with = PLATFORM_SUPPORTED, deps = [ "tcmalloc_internal_logging", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_time", + "@com_google_absl//absl/base", + "@com_google_absl//absl/time", ], ) @@ -379,7 +379,7 @@ mongo_cc_library( "tcmalloc_internal_mincore", "tcmalloc_internal_percpu", "tcmalloc_internal_sysinfo", - "//src/third_party/abseil-cpp:absl_base", + "@com_google_absl//absl/base", ], ) @@ -397,8 +397,8 @@ mongo_cc_library( target_compatible_with = PLATFORM_SUPPORTED, deps = [ "tcmalloc_internal_util", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base", + "@com_google_absl//absl/strings", ], ) @@ -415,8 +415,8 @@ mongo_cc_library( skip_global_deps = TCMALLOC_SKIP_GLOBAL_DEPS, target_compatible_with = PLATFORM_SUPPORTED, deps = [ - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/base", + "@com_google_absl//absl/strings", ], ) @@ -479,14 +479,16 @@ mongo_cc_library( "tcmalloc_malloc_extension", "tcmalloc_malloc_tracing_extension", "tcmalloc_new_extension", - "//src/third_party/abseil-cpp:absl_base", - "//src/third_party/abseil-cpp:absl_hash", - "//src/third_party/abseil-cpp:absl_malloc_internal", - "//src/third_party/abseil-cpp:absl_raw_hash_set", - "//src/third_party/abseil-cpp:absl_stacktrace", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_synchronization", - "//src/third_party/abseil-cpp:absl_time", + "@com_google_absl//absl/algorithm:container", + "@com_google_absl//absl/base", + "@com_google_absl//absl/base:malloc_internal", + "@com_google_absl//absl/container:flat_hash_map", + "@com_google_absl//absl/container:raw_hash_set", + "@com_google_absl//absl/debugging:stacktrace", + "@com_google_absl//absl/hash", + "@com_google_absl//absl/strings", + "@com_google_absl//absl/synchronization", + "@com_google_absl//absl/time", ], ) @@ -505,7 +507,7 @@ mongo_cc_library( deps = [ "tcmalloc_internal_environment", "tcmalloc_internal_logging", - "//src/third_party/abseil-cpp:absl_strings", + "@com_google_absl//absl/strings", ], ) @@ -522,9 +524,11 @@ mongo_cc_library( skip_global_deps = TCMALLOC_SKIP_GLOBAL_DEPS, target_compatible_with = PLATFORM_SUPPORTED, deps = [ - "//src/third_party/abseil-cpp:absl_malloc_internal", - "//src/third_party/abseil-cpp:absl_strings", - "//src/third_party/abseil-cpp:absl_time", + "@com_google_absl//absl/base:malloc_internal", + "@com_google_absl//absl/functional:function_ref", + "@com_google_absl//absl/strings", + "@com_google_absl//absl/time", + "@com_google_absl//absl/types:span", ], ) @@ -541,8 +545,8 @@ mongo_cc_library( skip_global_deps = TCMALLOC_SKIP_GLOBAL_DEPS, target_compatible_with = PLATFORM_SUPPORTED, deps = [ - "//src/third_party/abseil-cpp:absl_status", - "//src/third_party/abseil-cpp:absl_statusor", + "@com_google_absl//absl/status", + "@com_google_absl//absl/status:statusor", ], ) @@ -577,5 +581,6 @@ mongo_cc_library( target_compatible_with = PLATFORM_SUPPORTED, deps = [ "tcmalloc_malloc_extension", + "@com_google_absl//absl/strings:str_format", ], )