43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
# Description:
|
|
# BUILD file for the Python bindings.
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
# Export the BUILD file so automated tooling can check licenses
|
|
exports_files(["BUILD"])
|
|
|
|
package(
|
|
default_visibility = [":friends"],
|
|
)
|
|
|
|
package_group(
|
|
name = "friends",
|
|
packages = [
|
|
"@local_config_mlir//bindings/...",
|
|
],
|
|
)
|
|
|
|
#
|
|
# Pybind route uses exceptions and py_extension.
|
|
#
|
|
py_extension(
|
|
name = "_pybind",
|
|
srcs = ["pybind.cpp"],
|
|
copts = ["-fexceptions"],
|
|
features = ["-use_header_modules"],
|
|
module_name = "pybind",
|
|
deps = [
|
|
"//third_party/llvm/llvm:ir",
|
|
"//third_party/llvm/llvm:support",
|
|
"//third_party/pybind11",
|
|
"@local_config_mlir//:EDSC",
|
|
"@local_config_mlir//:ExecutionEngine",
|
|
"@local_config_mlir//:IR",
|
|
"@local_config_mlir//:LLVMTransforms",
|
|
"@local_config_mlir//:Pass",
|
|
"@local_config_mlir//:StandardDialectRegistration",
|
|
"@local_config_mlir//:TargetLLVMIR",
|
|
"@local_config_mlir//:Transforms",
|
|
],
|
|
)
|