From b713a12be1b53f71b3a30eb4771f4472aacda1c2 Mon Sep 17 00:00:00 2001 From: ozanarmagan Date: Tue, 9 May 2023 11:29:58 +0300 Subject: [PATCH] Fix bug for sentencepiece build --- bazel/sentencepiece.BUILD | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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