Export of internal Abseil changes.
-- b0015627610a311997ab21b8b295a8168b5915ec by Derek Mauro <dmauro@google.com>: Add an empty log_severity library. The log_severity sources will eventually migrate here once users are updated to depend on the new target. Note that no opensource user should be depending on log_severity.h today since it has no purpose in opensource. PiperOrigin-RevId: 258781702 -- c4d8d03f731d1de648ef2d17a55c3a16029ba331 by Derek Mauro <dmauro@google.com>: Move atomic_hook.h to its own internal target. PiperOrigin-RevId: 258765527 GitOrigin-RevId: b0015627610a311997ab21b8b295a8168b5915ec Change-Id: I0ec9b8b3cb6a27dc32a5f6c318d07e02548f193d
This commit is contained in:
parent
c6c3c1b498
commit
278b26058c
4 changed files with 40 additions and 4 deletions
|
@ -27,6 +27,22 @@ package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
licenses(["notice"]) # Apache 2.0
|
licenses(["notice"]) # Apache 2.0
|
||||||
|
|
||||||
|
cc_library(
|
||||||
|
name = "atomic_hook",
|
||||||
|
hdrs = ["internal/atomic_hook.h"],
|
||||||
|
copts = ABSL_DEFAULT_COPTS,
|
||||||
|
linkopts = ABSL_DEFAULT_LINKOPTS,
|
||||||
|
visibility = [
|
||||||
|
"//absl:__subpackages__",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
cc_library(
|
||||||
|
name = "log_severity",
|
||||||
|
copts = ABSL_DEFAULT_COPTS,
|
||||||
|
linkopts = ABSL_DEFAULT_LINKOPTS,
|
||||||
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "spinlock_wait",
|
name = "spinlock_wait",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -143,7 +159,6 @@ cc_library(
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"call_once.h",
|
"call_once.h",
|
||||||
"casts.h",
|
"casts.h",
|
||||||
"internal/atomic_hook.h",
|
|
||||||
"internal/cycleclock.h",
|
"internal/cycleclock.h",
|
||||||
"internal/low_level_scheduling.h",
|
"internal/low_level_scheduling.h",
|
||||||
"internal/per_thread_tls.h",
|
"internal/per_thread_tls.h",
|
||||||
|
@ -161,10 +176,12 @@ cc_library(
|
||||||
"//conditions:default": ["-pthread"],
|
"//conditions:default": ["-pthread"],
|
||||||
}) + ABSL_DEFAULT_LINKOPTS,
|
}) + ABSL_DEFAULT_LINKOPTS,
|
||||||
deps = [
|
deps = [
|
||||||
|
":atomic_hook",
|
||||||
":base_internal",
|
":base_internal",
|
||||||
":config",
|
":config",
|
||||||
":core_headers",
|
":core_headers",
|
||||||
":dynamic_annotations",
|
":dynamic_annotations",
|
||||||
|
":log_severity",
|
||||||
":spinlock_wait",
|
":spinlock_wait",
|
||||||
"//absl/meta:type_traits",
|
"//absl/meta:type_traits",
|
||||||
],
|
],
|
||||||
|
@ -177,7 +194,7 @@ cc_test(
|
||||||
copts = ABSL_TEST_COPTS,
|
copts = ABSL_TEST_COPTS,
|
||||||
linkopts = ABSL_DEFAULT_LINKOPTS,
|
linkopts = ABSL_DEFAULT_LINKOPTS,
|
||||||
deps = [
|
deps = [
|
||||||
":base",
|
":atomic_hook",
|
||||||
":core_headers",
|
":core_headers",
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
],
|
],
|
||||||
|
@ -536,6 +553,7 @@ cc_test(
|
||||||
linkopts = ABSL_DEFAULT_LINKOPTS,
|
linkopts = ABSL_DEFAULT_LINKOPTS,
|
||||||
deps = [
|
deps = [
|
||||||
":base",
|
":base",
|
||||||
|
":log_severity",
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -14,6 +14,22 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
absl_cc_library(
|
||||||
|
NAME
|
||||||
|
atomic_hook
|
||||||
|
HDRS
|
||||||
|
"internal/atomic_hook.h"
|
||||||
|
COPTS
|
||||||
|
${ABSL_DEFAULT_COPTS}
|
||||||
|
)
|
||||||
|
|
||||||
|
absl_cc_library(
|
||||||
|
NAME
|
||||||
|
log_severity
|
||||||
|
COPTS
|
||||||
|
${ABSL_DEFAULT_COPTS}
|
||||||
|
)
|
||||||
|
|
||||||
absl_cc_library(
|
absl_cc_library(
|
||||||
NAME
|
NAME
|
||||||
spinlock_wait
|
spinlock_wait
|
||||||
|
@ -112,7 +128,6 @@ absl_cc_library(
|
||||||
HDRS
|
HDRS
|
||||||
"call_once.h"
|
"call_once.h"
|
||||||
"casts.h"
|
"casts.h"
|
||||||
"internal/atomic_hook.h"
|
|
||||||
"internal/cycleclock.h"
|
"internal/cycleclock.h"
|
||||||
"internal/low_level_scheduling.h"
|
"internal/low_level_scheduling.h"
|
||||||
"internal/per_thread_tls.h"
|
"internal/per_thread_tls.h"
|
||||||
|
@ -134,6 +149,7 @@ absl_cc_library(
|
||||||
COPTS
|
COPTS
|
||||||
${ABSL_DEFAULT_COPTS}
|
${ABSL_DEFAULT_COPTS}
|
||||||
DEPS
|
DEPS
|
||||||
|
absl::atomic_hook
|
||||||
absl::base_internal
|
absl::base_internal
|
||||||
absl::config
|
absl::config
|
||||||
absl::core_headers
|
absl::core_headers
|
||||||
|
@ -227,7 +243,7 @@ absl_cc_test(
|
||||||
COPTS
|
COPTS
|
||||||
${ABSL_TEST_COPTS}
|
${ABSL_TEST_COPTS}
|
||||||
DEPS
|
DEPS
|
||||||
absl::base
|
absl::atomic_hook
|
||||||
absl::core_headers
|
absl::core_headers
|
||||||
gtest_main
|
gtest_main
|
||||||
)
|
)
|
||||||
|
|
|
@ -78,6 +78,7 @@ cc_library(
|
||||||
deps = [
|
deps = [
|
||||||
":graphcycles_internal",
|
":graphcycles_internal",
|
||||||
"//absl/base",
|
"//absl/base",
|
||||||
|
"//absl/base:atomic_hook",
|
||||||
"//absl/base:base_internal",
|
"//absl/base:base_internal",
|
||||||
"//absl/base:config",
|
"//absl/base:config",
|
||||||
"//absl/base:core_headers",
|
"//absl/base:core_headers",
|
||||||
|
|
|
@ -55,6 +55,7 @@ absl_cc_library(
|
||||||
${ABSL_DEFAULT_COPTS}
|
${ABSL_DEFAULT_COPTS}
|
||||||
DEPS
|
DEPS
|
||||||
absl::graphcycles_internal
|
absl::graphcycles_internal
|
||||||
|
absl::atomic_hook
|
||||||
absl::base
|
absl::base
|
||||||
absl::base_internal
|
absl::base_internal
|
||||||
absl::config
|
absl::config
|
||||||
|
|
Loading…
Reference in a new issue