[llvm] [bazel] Add yaml2obj to mlir/Test/Target/BUILD.bazel (PR #153875)

Chenguang Wang via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 14:03:07 PDT 2025


https://github.com/wecing created https://github.com/llvm/llvm-project/pull/153875

https://github.com/llvm/llvm-project/pull/152131 uses yaml2obj, which is not listed as a dependency of the lit tests in bazel. This is causing LLVM CI failures, e.g [1].

[1]: https://buildkite.com/llvm-project/upstream-bazel/builds/146788/steps/canvas?sid=0198af37-f624-470f-aac1-d9e0b42fab56

>From 85d8dd445cfa8ba280f43f8bd4d5bacd86c88cb7 Mon Sep 17 00:00:00 2001
From: Chenguang Wang <w3cing at gmail.com>
Date: Fri, 15 Aug 2025 14:00:46 -0700
Subject: [PATCH] [bazel] Add yaml2obj to mlir/Test/Target/BUILD.bazel

https://github.com/llvm/llvm-project/pull/152131 uses yaml2obj, which is
not listed as a dependency of the lit tests in bazel. This is causing
LLVM CI failures, e.g [1].

[1]: https://buildkite.com/llvm-project/upstream-bazel/builds/146788/steps/canvas?sid=0198af37-f624-470f-aac1-d9e0b42fab56
---
 utils/bazel/llvm-project-overlay/mlir/test/Target/BUILD.bazel | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/bazel/llvm-project-overlay/mlir/test/Target/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/Target/BUILD.bazel
index 9a98f640d2723..b5a8dbd2885b7 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/Target/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/Target/BUILD.bazel
@@ -10,6 +10,7 @@ package(default_visibility = ["//visibility:public"])
         srcs = [src],
         data = [
             "//llvm:split-file",
+            "//llvm:yaml2obj",
             "//mlir:mlir-opt",
             "//mlir:mlir-translate",
             "//mlir/test:lit_data",



More information about the llvm-commits mailing list