[llvm] [bazel] Fix testonly declarations in mlir (PR #195159)
Alex Trotta via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 18:08:18 PDT 2026
https://github.com/Ahajha updated https://github.com/llvm/llvm-project/pull/195159
>From e2e9a1d57b318f113bad9823440fa0ed18ee6368 Mon Sep 17 00:00:00 2001
From: Alex Trotta <ahajha at gmail.com>
Date: Thu, 30 Apr 2026 21:07:56 -0400
Subject: [PATCH] [bazel] Fix testonly declarations in mlir
Some recent Bazel change (unsure what) caused these to start failing because they weren't properly declared. Some of these test targets are used in 'real' binaries, so it doesn't make sense to propagate `testonly`, so just remove it.
---
utils/bazel/llvm-project-overlay/mlir/tblgen.bzl | 1 -
1 file changed, 1 deletion(-)
diff --git a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
index d28a8854fa896..38d56d099fe8a 100644
--- a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
+++ b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
@@ -538,7 +538,6 @@ def gentbl_sharded_ops(
gentbl_shard_rule(
index = i,
name = name + "__src_shard" + str(i),
- testonly = test,
out = out_file,
sharder = sharder,
src_file = src_file,
More information about the llvm-commits
mailing list