aboutsummaryrefslogtreecommitdiff
path: root/python/tools
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2022-01-14 01:09:06 -0800
committerCopybara-Service <copybara-worker@google.com>2022-01-14 01:09:54 -0800
commit8999291cb384cce54fc7d84ed76479586a3d544f (patch)
tree1b3671c1c62854f60e6bc57afe319d4a87c0ffb1 /python/tools
parent40db9ca6e721e82662fe39905a7f631cb1ef470a (diff)
downloadtink-8999291cb384cce54fc7d84ed76479586a3d544f.tar.gz
Remove the cc_library targets from tink_pybind_extension.
These were used when we had multiple "tink_pybind_extension" targets, but not removed when we migrated to use a single one. PiperOrigin-RevId: 421760889
Diffstat (limited to 'python/tools')
-rw-r--r--python/tools/build_defs/tink_python_rules.bzl9
1 files changed, 0 insertions, 9 deletions
diff --git a/python/tools/build_defs/tink_python_rules.bzl b/python/tools/build_defs/tink_python_rules.bzl
index 7b15c0907..9cf7db518 100644
--- a/python/tools/build_defs/tink_python_rules.bzl
+++ b/python/tools/build_defs/tink_python_rules.bzl
@@ -14,7 +14,6 @@ def tink_pybind_extension(
Creates Bazel targets for a pybind module:
- A py_library with the taret name
- A cc_binary with the target name.so
- - A cc_library with the target name_cc
Args:
name: name of the target
@@ -29,7 +28,6 @@ def tink_pybind_extension(
A py_library target.
"""
shared_lib_name = name + ".so"
- cc_library_name = name + "_cc"
native.cc_binary(
name = shared_lib_name,
linkshared = 1,
@@ -43,13 +41,6 @@ def tink_pybind_extension(
features = features,
deps = deps,
)
- native.cc_library(
- name = cc_library_name,
- srcs = srcs,
- hdrs = hdrs,
- deps = deps,
- alwayslink = True,
- )
# Extract Python targets from deps
pybind_deps = [dep[:-3] for dep in deps if dep.endswith("_cc")]