diff options
Diffstat (limited to 'absl/log/CMakeLists.txt')
-rw-r--r-- | absl/log/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/log/CMakeLists.txt b/absl/log/CMakeLists.txt index 3c61fe87..a7d8b690 100644 --- a/absl/log/CMakeLists.txt +++ b/absl/log/CMakeLists.txt @@ -461,6 +461,11 @@ absl_cc_library( PUBLIC ) +# Warning: Many linkers will strip the contents of this library because its +# symbols are only used in a global constructor. A workaround is for clients +# to link this using $<LINK_LIBRARY:WHOLE_ARCHIVE,absl::log_flags> instead of +# the plain absl::log_flags. +# TODO(b/320467376): Implement the equivalent of Bazel's alwayslink=True. absl_cc_library( NAME log_flags |