Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions shardy/dialect/mpmd/transforms/sharding_propagation/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# The MPMD sharding propagation passes and pipeline.

# load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")

package(default_visibility = ["//visibility:public"])
Expand Down
9 changes: 5 additions & 4 deletions third_party/py/py_extension.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# limitations under the License.
"""Supports writing Python modules in C++."""

# load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
# load("@rules_cc//cc:cc_library.bzl", "cc_library")

# buildifier: disable=unused-variable
def py_extension(
name = None,
Expand Down Expand Up @@ -43,8 +46,7 @@ def py_extension(

cc_library_name = name + "_cc"
cc_binary_name = name + ".so"

native.cc_library(
cc_library(
name = cc_library_name,
srcs = srcs,
hdrs = hdrs,
Expand All @@ -54,8 +56,7 @@ def py_extension(
deps = deps,
alwayslink = True,
)

native.cc_binary(
cc_binary(
name = cc_binary_name,
linkshared = True,
linkstatic = True,
Expand Down
Loading