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

Sentencepiece: use build tmp dir instead of install dir.

Kishore Nallancf592caf3c33
diff --git a/bazel/sentencepiece.BUILD b/bazel/sentencepiece.BUILD
index 6958221c..05967725 100644
--- a/bazel/sentencepiece.BUILD
+++ b/bazel/sentencepiece.BUILD
@@ -30,9 +30,9 @@ cmake(
install = False,
cache_entries = {
'SPM_USE_BUILTIN_PROTOBUF': 'OFF',
- 'Protobuf_LIBRARY': '$INSTALLDIR/../../com_google_protobuf/libprotobuf.a',
- 'Protobuf_LITE_LIBRARY': '$INSTALLDIR/../../com_google_protobuf/libprotobuf-lite.a',
- 'Protobuf_PROTOC_EXECUTABLE': '$INSTALLDIR/../../com_google_protobuf/protoc',
+ 'Protobuf_LIBRARY': '$$BUILD_TMPDIR$$/../../com_google_protobuf/libprotobuf.a',
+ 'Protobuf_LITE_LIBRARY': '$$BUILD_TMPDIR$$/../../com_google_protobuf/libprotobuf-lite.a',
+ 'Protobuf_PROTOC_EXECUTABLE': '$$BUILD_TMPDIR$$/../../com_google_protobuf/protoc',
'Protobuf_INCLUDE_DIR': '$EXT_BUILD_ROOT/external/com_google_protobuf/src',
'CMAKE_POLICY_DEFAULT_CMP0111':'OLD'
},
@@ -44,7 +44,7 @@ cmake(
],
tags = ["no-sandbox"],
postfix_script= """
-echo "Intstalling sentencepiece"
-cp $BUILD_TMPDIR/src/libsentencepiece.a $INSTALLDIR/lib/libsentencepiece.a
-"""
+ echo "Installing sentencepiece"
+ cp $BUILD_TMPDIR/src/libsentencepiece.a $INSTALLDIR/lib/libsentencepiece.a
+ """
)