aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sentencepiece/abseil.diff
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/sentencepiece/abseil.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sentencepiece/abseil.diff')
-rw-r--r--vcpkg/ports/sentencepiece/abseil.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/sentencepiece/abseil.diff b/vcpkg/ports/sentencepiece/abseil.diff
new file mode 100644
index 0000000..781afae
--- /dev/null
+++ b/vcpkg/ports/sentencepiece/abseil.diff
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9fa37fa..0e220e6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -173,6 +173,9 @@ elseif (SPM_ABSL_PROVIDER STREQUAL "package")
+ find_package(absl REQUIRED)
+ get_target_property(ABSL_INCLUDE_DIRS absl::base INTERFACE_INCLUDE_DIRECTORIES)
+ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/absl.org)
++ file(REMOVE_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/third_party/absl)
++ file(COPY "${ABSL_INCLUDE_DIRS}/absl" DESTINATION "${PROJECT_BINARY_DIR}/third_party")
++ elseif(0)
+ file(RENAME ${CMAKE_CURRENT_SOURCE_DIR}/third_party/absl ${CMAKE_CURRENT_SOURCE_DIR}/third_party/absl.org)
+ execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
+ ${ABSL_INCLUDE_DIRS}/absl ${CMAKE_CURRENT_SOURCE_DIR}/third_party/absl)
+diff --git a/src/sentencepiece_processor.h b/src/sentencepiece_processor.h
+index dd3f092..c1551a7 100644
+--- a/src/sentencepiece_processor.h
++++ b/src/sentencepiece_processor.h
+@@ -23,9 +23,7 @@
+ #include <vector>
+
+ #ifndef SWIG
+-namespace absl {
+-using std::string_view;
+-} // namespace absl
++#include <absl/strings/string_view.h>
+ #endif // SWIG
+
+ namespace sentencepiece {