Commit 20cf119d by Derek Mauro Committed by Copybara-Service

Use an allowlist visibility model for //absl/synchronization

PiperOrigin-RevId: 546914671
Change-Id: I6f0419103efdd8125e4027e7d5eec124ca604156
parent 81b9030e
...@@ -21,7 +21,7 @@ load( ...@@ -21,7 +21,7 @@ load(
"ABSL_TEST_COPTS", "ABSL_TEST_COPTS",
) )
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:private"])
licenses(["notice"]) licenses(["notice"])
...@@ -38,9 +38,6 @@ cc_library( ...@@ -38,9 +38,6 @@ cc_library(
"//conditions:default": [], "//conditions:default": [],
}), }),
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = [
"//absl:__subpackages__",
],
deps = [ deps = [
"//absl/base", "//absl/base",
"//absl/base:base_internal", "//absl/base:base_internal",
...@@ -58,7 +55,6 @@ cc_library( ...@@ -58,7 +55,6 @@ cc_library(
copts = ABSL_DEFAULT_COPTS, copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = [ visibility = [
"//absl/synchronization:__pkg__",
], ],
deps = [ deps = [
"//absl/base", "//absl/base",
...@@ -123,6 +119,7 @@ cc_library( ...@@ -123,6 +119,7 @@ cc_library(
"//absl:wasm": [], "//absl:wasm": [],
"//conditions:default": ["-pthread"], "//conditions:default": ["-pthread"],
}) + ABSL_DEFAULT_LINKOPTS, }) + ABSL_DEFAULT_LINKOPTS,
visibility = ["//visibility:public"],
deps = [ deps = [
":graphcycles_internal", ":graphcycles_internal",
":kernel_timeout_internal", ":kernel_timeout_internal",
...@@ -149,7 +146,7 @@ cc_test( ...@@ -149,7 +146,7 @@ cc_test(
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
tags = [ tags = [
"no_test_wasm", "no_test_wasm", # b/122473323
], ],
deps = [ deps = [
":synchronization", ":synchronization",
...@@ -165,7 +162,7 @@ cc_test( ...@@ -165,7 +162,7 @@ cc_test(
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
tags = [ tags = [
"no_test_wasm", "no_test_wasm", # b/122473323
], ],
deps = [ deps = [
":synchronization", ":synchronization",
...@@ -181,7 +178,6 @@ cc_binary( ...@@ -181,7 +178,6 @@ cc_binary(
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
tags = ["benchmark"], tags = ["benchmark"],
visibility = ["//visibility:private"],
deps = [ deps = [
":synchronization", ":synchronization",
":thread_pool", ":thread_pool",
...@@ -275,7 +271,6 @@ cc_library( ...@@ -275,7 +271,6 @@ cc_library(
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = [ visibility = [
"//absl/synchronization:__pkg__",
], ],
deps = [ deps = [
":synchronization", ":synchronization",
...@@ -292,7 +287,6 @@ cc_binary( ...@@ -292,7 +287,6 @@ cc_binary(
testonly = 1, testonly = 1,
copts = ABSL_DEFAULT_COPTS, copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = ["//visibility:private"],
deps = [ deps = [
":mutex_benchmark_common", ":mutex_benchmark_common",
], ],
...@@ -319,6 +313,8 @@ cc_library( ...@@ -319,6 +313,8 @@ cc_library(
srcs = ["internal/per_thread_sem_test.cc"], srcs = ["internal/per_thread_sem_test.cc"],
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = [
],
deps = [ deps = [
":synchronization", ":synchronization",
"//absl/base", "//absl/base",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment