Skip to content

Commit 03fc480

Browse files
authored
[mlir][bazel] Adjust BUILD file to work with transform_build_files tool.
1 parent 8fe33a0 commit 03fc480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ genrule(
260260
name = "test_irdl_to_cpp_gen",
261261
srcs = ["lib/Dialect/TestIRDLToCpp/test_irdl_to_cpp.irdl.mlir"],
262262
outs = ["lib/Dialect/TestIRDLToCpp/test_irdl_to_cpp.irdl.mlir.cpp.inc"],
263-
cmd = "$(location //mlir:irdl-to-cpp) $(location //mlir/test:lib/Dialect/TestIRDLToCpp/test_irdl_to_cpp.irdl.mlir) -o $@",
263+
cmd = "$(location %s) $< -o $@" % "//mlir:irdl-to-cpp",
264264
tools = ["//mlir:irdl-to-cpp"],
265265
)
266266

0 commit comments

Comments
 (0)