diff options
author | Abseil Team <absl-team@google.com> | 2019-07-25T11·03-0700 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2019-07-25T22·02-0400 |
commit | 36d37ab992038f52276ca66b9da80c1cf0f57dc2 (patch) | |
tree | 85b41d7f9cbe30df2e389130a94e0e5a54674b54 /absl/base | |
parent | ad1485c8986246b2ae9105e512738d0e97aec887 (diff) |
Export of internal Abseil changes.
-- 1224e58a45e4d016b18f5a6cf5762ba33027017a by CJ Johnson <johnsoncj@google.com>: Unifies the growth factor of InlinedVector's mutating members to max(2 * capacity, req_capacity). In doing so, LegacyNextCapacityFrom(...) is removed thus removing a loop from several callsites. PiperOrigin-RevId: 259920301 -- 945fc0bf27b67ea77d39144dcb6a483dc879ceda by Laramie Leavitt <lar@google.com>: Cleanup header guards which do not reflect the correct style. PiperOrigin-RevId: 259881520 -- 8c7d0532ba9a9aabfd57f67552572b2b1bedda97 by Derek Mauro <dmauro@google.com>: Move log_severity sources to the new log_severity target. PiperOrigin-RevId: 259837015 GitOrigin-RevId: 1224e58a45e4d016b18f5a6cf5762ba33027017a Change-Id: Id19506c3b8db71a0d4391ee917bfef3e802d550d
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/BUILD.bazel | 5 | ||||
-rw-r--r-- | absl/base/CMakeLists.txt | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/absl/base/BUILD.bazel b/absl/base/BUILD.bazel index 1cdd1909b3ae..1a18f5f7101f 100644 --- a/absl/base/BUILD.bazel +++ b/absl/base/BUILD.bazel @@ -39,8 +39,11 @@ cc_library( cc_library( name = "log_severity", + srcs = ["log_severity.cc"], + hdrs = ["log_severity.h"], copts = ABSL_DEFAULT_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, + deps = [":core_headers"], ) cc_library( @@ -154,7 +157,6 @@ cc_library( "internal/sysinfo.cc", "internal/thread_identity.cc", "internal/unscaledcycleclock.cc", - "log_severity.cc", ], hdrs = [ "call_once.h", @@ -168,7 +170,6 @@ cc_library( "internal/thread_identity.h", "internal/tsan_mutex_interface.h", "internal/unscaledcycleclock.h", - "log_severity.h", ], copts = ABSL_DEFAULT_COPTS, linkopts = select({ diff --git a/absl/base/CMakeLists.txt b/absl/base/CMakeLists.txt index f27e121e2553..8417556c4b33 100644 --- a/absl/base/CMakeLists.txt +++ b/absl/base/CMakeLists.txt @@ -26,6 +26,12 @@ absl_cc_library( absl_cc_library( NAME log_severity + HDRS + "log_severity.h" + SRCS + "log_severity.cc" + DEPS + absl::core_headers COPTS ${ABSL_DEFAULT_COPTS} ) @@ -154,6 +160,7 @@ absl_cc_library( absl::config absl::core_headers absl::dynamic_annotations + absl::log_severity absl::spinlock_wait absl::type_traits Threads::Threads @@ -510,6 +517,7 @@ absl_cc_test( "log_severity_test.cc" DEPS absl::base + absl::log_severity gmock gtest_main ) |