From c6318859df210da5c997720ff02ec23b91ae2f77 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Fri, 4 Dec 2020 11:40:48 +0200 Subject: [PATCH] Re-add missing TF flags to deepspeech_bundle library --- native_client/BUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native_client/BUILD b/native_client/BUILD index c98d86a3..d25454a1 100644 --- a/native_client/BUILD +++ b/native_client/BUILD @@ -1,6 +1,6 @@ # Description: Deepspeech native client library. -load("@org_tensorflow//tensorflow:tensorflow.bzl", "tf_cc_shared_object") +load("@org_tensorflow//tensorflow:tensorflow.bzl", "tf_cc_shared_object", "tf_copts", "lrt_if_needed") load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps") load("@build_bazel_rules_apple//apple:ios.bzl", "ios_static_framework") @@ -131,7 +131,7 @@ cc_library( "tfmodelstate.cc", ], }), - copts = select({ + copts = tf_copts() + select({ # -fvisibility=hidden is not required on Windows, MSCV hides all declarations by default "//tensorflow:windows": ["/w"], # -Wno-sign-compare to silent a lot of warnings from tensorflow itself, @@ -144,7 +144,7 @@ cc_library( "//native_client:tflite": ["-DUSE_TFLITE"], "//conditions:default": ["-UUSE_TFLITE"], }) + tflite_copts(), - linkopts = select({ + linkopts = lrt_if_needed() + select({ "//tensorflow:macos": [], "//tensorflow:ios": ["-fembed-bitcode"], "//tensorflow:linux_x86_64": LINUX_LINKOPTS,