6 Star 0 Fork 4

src-openEuler/sentencepiece

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix_failure_to_compile_sentencepiece_on_android.patch 618 Bytes
一键复制 编辑 原始数据 按行查看 历史
diff -Npur sentencepiece-0.1.98/src/CMakeLists.txt sentencepiece-0.1.98-change/src/CMakeLists.txt
--- sentencepiece-0.1.98/src/CMakeLists.txt 2023-04-12 15:41:58.000000000 +0800
+++ sentencepiece-0.1.98-change/src/CMakeLists.txt 2024-09-02 17:01:55.438888030 +0800
@@ -220,6 +220,10 @@ endif()
if (SPM_ENABLE_SHARED)
add_library(sentencepiece SHARED ${SPM_SRCS})
add_library(sentencepiece_train SHARED ${SPM_TRAIN_SRCS})
+ if (ANDROID)
+ target_link_libraries(sentencepiece log)
+ target_link_libraries(sentencepiece_train log)
+ endif()
endif()
add_library(sentencepiece-static STATIC ${SPM_SRCS})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/sentencepiece.git
git@gitee.com:src-openeuler/sentencepiece.git
src-openeuler
sentencepiece
sentencepiece
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385