Files
doris/thirdparty/patches/absl.patch
Pxl c816d9d6e5 [Chore](s2geo) disable ABSL_BTREE_ENABLE_GENERATIONS and use CMAKE_BUILD_TYPE to rep… (#15104)
disable ABSL_BTREE_ENABLE_GENERATIONS and use CMAKE_BUILD_TYPE to replace o3
2022-12-15 21:36:28 +08:00

22 lines
867 B
Diff

diff --git a/absl/container/internal/btree.h b/absl/container/internal/btree.h
index 01f4e749..3ff8e798 100644
--- a/absl/container/internal/btree.h
+++ b/absl/container/internal/btree.h
@@ -75,16 +75,6 @@ namespace absl {
ABSL_NAMESPACE_BEGIN
namespace container_internal {
-#ifdef ABSL_BTREE_ENABLE_GENERATIONS
-#error ABSL_BTREE_ENABLE_GENERATIONS cannot be directly set
-#elif defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
- defined(ABSL_HAVE_MEMORY_SANITIZER)
-// When compiled in sanitizer mode, we add generation integers to the nodes and
-// iterators. When iterators are used, we validate that the container has not
-// been mutated since the iterator was constructed.
-#define ABSL_BTREE_ENABLE_GENERATIONS
-#endif
-
template <typename Compare, typename T, typename U>
using compare_result_t = absl::result_of_t<const Compare(const T &, const U &)>;