aboutsummaryrefslogtreecommitdiff
path: root/absl/log/log_entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/log/log_entry.cc')
-rw-r--r--absl/log/log_entry.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/absl/log/log_entry.cc b/absl/log/log_entry.cc
index 19c3b3f1..fe58a576 100644
--- a/absl/log/log_entry.cc
+++ b/absl/log/log_entry.cc
@@ -25,5 +25,17 @@ constexpr int LogEntry::kNoVerbosityLevel;
constexpr int LogEntry::kNoVerboseLevel;
#endif
+// https://github.com/abseil/abseil-cpp/issues/1465
+// CMake builds on Apple platforms error when libraries are empty.
+// Our CMake configuration can avoid this error on header-only libraries,
+// but since this library is conditionally empty, including a single
+// variable is an easy workaround.
+#ifdef __APPLE__
+namespace log_internal {
+extern const char kAvoidEmptyLogEntryLibraryWarning;
+const char kAvoidEmptyLogEntryLibraryWarning = 0;
+} // namespace log_internal
+#endif // __APPLE__
+
ABSL_NAMESPACE_END
} // namespace absl