Skip to content

Commit

Permalink
Export of internal Abseil changes
Browse files Browse the repository at this point in the history
--
51798d2ac9c95ee8955955c5d8d78b4c9592ecf7 by Derek Mauro <[email protected]>:

Correctly install pkgconfig files under CMAKE_INSTALL_LIBDIR
Fixes #931

PiperOrigin-RevId: 366816645

--
fbaad678b54dae70e4cd9f4442b4fef9efb71b30 by Abseil Team <[email protected]>:

Add a kDefaultStatusToStringMode representing the default StatusToStringMode.

PiperOrigin-RevId: 366478305

--
25b4be6a591e8b25338a00be1273cd6cae6b0165 by Evan Brown <[email protected]>:

Fix a typo in a comment.

PiperOrigin-RevId: 366464483

--
6add48ed8f633c219f02c6ef8af876f8dbaa9955 by Abseil Team <[email protected]>:

Update comment to mention absl::container_literal::Layout which is what is used instead of gtl::Layout.

PiperOrigin-RevId: 366452345
GitOrigin-RevId: 51798d2ac9c95ee8955955c5d8d78b4c9592ecf7
Change-Id: I8e68bc55d81445b2f6f707943fed9075cd402844
  • Loading branch information
Abseil Team authored and vslashg committed Apr 5, 2021
1 parent 354030b commit 7f4d0ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMake/AbseilHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Requires:${PC_DEPS}\n\
Libs: -L\${libdir} $<JOIN:${ABSL_CC_LIB_LINKOPTS}, > $<$<NOT:$<BOOL:${ABSL_CC_LIB_IS_INTERFACE}>>:-labsl_${_NAME}>\n\
Cflags: -I\${includedir}${PC_CFLAGS}\n")
INSTALL(FILES "${CMAKE_BINARY_DIR}/lib/pkgconfig/absl_${_NAME}.pc"
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif()
endif()

Expand Down
4 changes: 2 additions & 2 deletions absl/container/internal/btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ class btree_node {
std::is_same<std::greater<key_type>,
key_compare>::value)>;

// This class is organized by gtl::Layout as if it had the following
// structure:
// This class is organized by absl::container_internal::Layout as if it had
// the following structure:
// // A pointer to the node's parent.
// btree_node *parent;
//
Expand Down
4 changes: 3 additions & 1 deletion absl/status/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ enum class StatusToStringMode : int {
kWithPayload = 1 << 0,
// ToString will include all the extra data this Status has.
kWithEverything = ~kWithNoExtraData,
// Default mode used by ToString. Its exact value might change in the future.
kDefault = kWithPayload,
};

// absl::StatusToStringMode is specified as a bitmask type, which means the
Expand Down Expand Up @@ -509,7 +511,7 @@ class Status final {
// result, and the payloads to be printed use the status payload printer
// mechanism (which is internal).
std::string ToString(
StatusToStringMode mode = StatusToStringMode::kWithPayload) const;
StatusToStringMode mode = StatusToStringMode::kDefault) const;

// Status::IgnoreError()
//
Expand Down

0 comments on commit 7f4d0ba

Please sign in to comment.