Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Fix bug for sentencepiece build

ozanarmaganb713a12be1b5
diff --git a/bazel/sentencepiece.BUILD b/bazel/sentencepiece.BUILD
index 9476a073..babe2013 100644
--- a/bazel/sentencepiece.BUILD
+++ b/bazel/sentencepiece.BUILD
@@ -30,15 +30,19 @@ cmake(
install = False,
cache_entries = {
'SPM_USE_BUILTIN_PROTOBUF': 'OFF',
- 'Protobuf_LIBRARY': '$EXT_BUILD_ROOT/bazel-out/k8-fastbuild/bin/external/com_google_protobuf/',
- 'Protobuf_LITE_LIBRARY': '$EXT_BUILD_ROOT/bazel-out/k8-fastbuild/bin/external/com_google_protobuf/',
+ 'Protobuf_LIBRARY': '$EXT_BUILD_ROOT/bazel-out/k8-fastbuild/bin/external/com_google_protobuf/libprotobuf.a',
+ 'Protobuf_LITE_LIBRARY': '$EXT_BUILD_ROOT/bazel-out/k8-fastbuild/bin/external/com_google_protobuf/libprotobuf-lite.a',
+ 'Protobuf_PROTOC_EXECUTABLE': '$EXT_BUILD_ROOT/bazel-out/k8-fastbuild/bin/external/com_google_protobuf/protoc',
'Protobuf_INCLUDE_DIR': '$EXT_BUILD_ROOT/external/com_google_protobuf/src',
+ 'CMAKE_POLICY_DEFAULT_CMP0111':'OLD'
},
deps = [
+ "@com_google_protobuf//:protoc",
"@com_google_protobuf//:protobuf_lite",
"@com_google_protobuf//:protobuf",
"@com_google_protobuf//:protobuf_headers",
],
+ tags = ["no-sandbox"],
postfix_script= """
echo "Intstalling sentencepiece"
cp $BUILD_TMPDIR/src/libsentencepiece.a $INSTALLDIR/lib/libsentencepiece.a