github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/mlir/bindings/python/BUILD (about) 1 # Description: 2 # BUILD file for the Python bindings. 3 4 licenses(["notice"]) # Apache 2.0 5 6 # Export the BUILD file so automated tooling can check licenses 7 exports_files(["BUILD"]) 8 9 package( 10 default_visibility = [":friends"], 11 ) 12 13 package_group( 14 name = "friends", 15 packages = [ 16 "@local_config_mlir//bindings/...", 17 ], 18 ) 19 20 # 21 # Pybind route uses exceptions and py_extension. 22 # 23 py_extension( 24 name = "_pybind", 25 srcs = ["pybind.cpp"], 26 copts = ["-fexceptions"], 27 features = ["-use_header_modules"], 28 module_name = "pybind", 29 deps = [ 30 "//third_party/llvm/llvm:ir", 31 "//third_party/llvm/llvm:support", 32 "//third_party/pybind11", 33 "@local_config_mlir//:EDSC", 34 "@local_config_mlir//:ExecutionEngine", 35 "@local_config_mlir//:IR", 36 "@local_config_mlir//:LLVMTransforms", 37 "@local_config_mlir//:Pass", 38 "@local_config_mlir//:StandardDialectRegistration", 39 "@local_config_mlir//:TargetLLVMIR", 40 "@local_config_mlir//:Transforms", 41 ], 42 )