Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion third-party/benchmark/bindings/python/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
This file contains some build definitions for C++ extensions used in the Google Benchmark Python bindings.
"""

load("//third_party/bazel_rules/rules_cc/cc:cc_binary.bzl", "cc_binary")

_SHARED_LIB_SUFFIX = {
"//conditions:default": ".so",
"//:windows": ".dll",
Expand All @@ -10,7 +12,7 @@ _SHARED_LIB_SUFFIX = {
def py_extension(name, srcs, hdrs = [], copts = [], features = [], deps = []):
for shared_lib_suffix in _SHARED_LIB_SUFFIX.values():
shared_lib_name = name + shared_lib_suffix
native.cc_binary(
cc_binary(
name = shared_lib_name,
linkshared = True,
linkstatic = True,
Expand Down
Loading