Skip to content

Commit 0ec2f03

Browse files
authored
[bazel] Fix parse_headers in mlir package (llvm#191094)
1 parent 544e6c6 commit 0ec2f03

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ load(":tblgen.bzl", "gentbl_cc_library", "td_library")
2121

2222
package(
2323
default_visibility = ["//visibility:public"],
24-
features = ["layering_check"],
24+
features = [
25+
"layering_check",
26+
"parse_headers",
27+
],
2528
)
2629

2730
licenses(["notice"])
@@ -1060,7 +1063,7 @@ cc_library(
10601063
":CAPIDebugHeaders",
10611064
":CAPIIRHeaders",
10621065
":CAPITransformsHeaders",
1063-
"@pybind11",
1066+
"@nanobind",
10641067
"@rules_python//python/cc:current_py_cc_headers",
10651068
],
10661069
)
@@ -1073,7 +1076,7 @@ cc_library(
10731076
":CAPIDebug",
10741077
":CAPIIR",
10751078
":CAPITransforms",
1076-
"@pybind11",
1079+
"@nanobind",
10771080
"@rules_python//python/cc:current_py_cc_headers",
10781081
],
10791082
)
@@ -1141,6 +1144,7 @@ cc_library(
11411144
hdrs = [":MLIRBindingsPythonCoreHeaders"],
11421145
includes = ["lib/Bindings/Python"],
11431146
deps = [
1147+
":CAPIIRHeaders",
11441148
":MLIRBindingsPythonNanobindHeaders",
11451149
"@nanobind",
11461150
],
@@ -1718,6 +1722,7 @@ cc_library(
17181722
"include/mlir/Dialect/AMDGPU/IR/AMDGPUEnums.h",
17191723
"lib/Conversion/LLVMCommon/MemRefDescriptor.h",
17201724
],
1725+
features = ["-parse_headers"],
17211726
includes = ["include"],
17221727
deps = [
17231728
":AMDGPUIncGen",

0 commit comments

Comments
 (0)