瀏覽代碼

Get the tcmalloc build fix (#4784)

I fixed the build issue in
https://github.com/google/tcmalloc/commit/b6563dbdc7905f7b0b31c97256c83e7c9b2f08c2
Jon Ross-Perkins 1 年之前
父節點
當前提交
3a6fd0306e
共有 2 個文件被更改,包括 3 次插入6 次删除
  1. 1 4
      .bazelrc
  2. 2 2
      MODULE.bazel

+ 1 - 4
.bazelrc

@@ -163,10 +163,6 @@ common --incompatible_autoload_externally=+@rules_java,+@rules_python,+@rules_sh
 # TODO: Enable the flag once compatibility issues are fixed.
 # common --incompatible_check_visibility_for_toolchains
 
-# Incompatible with `tcmalloc`.
-# TODO: Fix `bazel build -c opt //...`.
-# common --incompatible_config_setting_private_default_visibility
-
 # Enable as many incompatible flags as we can, per
 # https://bazel.build/release/backward-compatibility. To get the latest list,
 # using `bazelisk --migrate build //...` will help.
@@ -176,6 +172,7 @@ common --incompatible_always_include_files_in_data
 common --incompatible_bazel_test_exec_run_under
 common --incompatible_check_sharding_support
 common --incompatible_check_testonly_for_output_files
+common --incompatible_config_setting_private_default_visibility
 common --incompatible_default_to_explicit_init_py
 common --incompatible_depset_for_java_output_source_jars
 common --incompatible_depset_for_libraries_to_link_getter

+ 2 - 2
MODULE.bazel

@@ -60,8 +60,8 @@ archive_override(
 bazel_dep(name = "tcmalloc", version = "0.0.0-20240411-5ed309d", dev_dependency = True)
 git_override(
     module_name = "tcmalloc",
-    # HEAD as of 2024-12-20.
-    commit = "91765c11461a01579fcbdddf430a556b818818c4",
+    # HEAD as of 2025-01-09.
+    commit = "d02a005a369252a4f239b36cc698daf7f87ba648",
     remote = "https://github.com/google/tcmalloc.git",
 )