Pass cc_op_defs as deps, not srcs, to underlying cc_library rule (#2522) This is because the targets are cc_libraries, not C++ source files. BUG=cl/619288666
diff --git a/python/tflite_micro/signal/tflm_signal.bzl b/python/tflite_micro/signal/tflm_signal.bzl index 9bf773e..1635b48 100644 --- a/python/tflite_micro/signal/tflm_signal.bzl +++ b/python/tflite_micro/signal/tflm_signal.bzl
@@ -25,7 +25,7 @@ srcs: Python source files for the Python library. deps: Dependencies for the Python library. visibility: Visibility for the Python library. - cc_op_defs: A list of c++ src files containing REGISTER_OP definitions. + cc_op_defs: A list of c++ libraries containing REGISTER_OP definitions. cc_op_kernels: A list of c++ targets containing kernels that are used by the Python library. """ @@ -39,12 +39,12 @@ library_name = name + "_cc" native.cc_library( name = library_name, - srcs = cc_op_defs, copts = select({ "//conditions:default": ["-pthread"], }), alwayslink = 1, deps = + cc_op_defs + cc_op_kernels + ["@tensorflow_cc_deps//:cc_library"] + select({"//conditions:default": []}),