Skip to content

Commit ac591be

Browse files
committed
chore: Add chord patch for abseil
1 parent 40be57c commit ac591be

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎deps/abseil/chord.patch‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/absl/strings/cord.h b/absl/strings/cord.h
2+
index 1d8fcd37..2e8fd500 100644
3+
--- a/absl/strings/cord.h
4+
+++ b/absl/strings/cord.h
5+
@@ -849,8 +849,8 @@ class Cord {
6+
friend bool operator==(const Cord& lhs, const Cord& rhs);
7+
friend bool operator==(const Cord& lhs, absl::string_view rhs);
8+
9+
-#ifdef __cpp_impl_three_way_comparison
10+
-
11+
+#if defined(__cpp_impl_three_way_comparison) && \
12+
+ defined(__cpp_lib_three_way_comparison)
13+
// Cords support comparison with other Cords and string_views via operator<
14+
// and others; here we provide a wrapper for the C++20 three-way comparison
15+
// <=> operator.

‎deps/abseil/portfile.cmake‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ vcpkg_from_github(
2323
HEAD_REF
2424
master
2525
PATCHES
26-
${TIME_PATCH})
26+
${TIME_PATCH}
27+
chord.patch)
2728

2829
# With ABSL_PROPAGATE_CXX_STD=ON abseil automatically detect if it is being compiled with C++14 or C++17, and modifies
2930
# the installed `absl/base/options.h` header accordingly. This works even if CMAKE_CXX_STANDARD is not set. Abseil uses

0 commit comments

Comments
 (0)