[llvm] [mlir][bazel] Fix build after changes from #183856. (PR #184134)

Ingo Müller via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 06:39:01 PST 2026


https://github.com/ingomueller-net created https://github.com/llvm/llvm-project/pull/184134

This PR fixes the bazel build breakages introduced by #183856, which introduced a new CMake flag that wasn't set in the bazel build, thus leading to a placeholder not being replaced and a consequent syntax error. The fix consists of setting this value to the default (`0`), which is how similar flags are handled.

>From 16fc242f0d8e3a60f40c1449c7ef7a52bbbc6823 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ingo=20M=C3=BCller?= <ingomueller at google.com>
Date: Mon, 2 Mar 2026 14:36:14 +0000
Subject: [PATCH] [mlir][bazel] Fix build after changes from #183856.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This PR fixes the bazel build breakages introduced by #183856, which
introduced a new CMake flag that wasn't set in the bazel build, thus
leading to a placeholder not being replaced and a consequent syntax
error. The fix consists of setting this value to the default (`0`),
which is how similar flags are handled.

Signed-off-by: Ingo Müller <ingomueller at google.com>
---
 utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index 800001c700340..f3134071c972e 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -49,6 +49,7 @@ expand_template(
         "@MLIR_ENABLE_VULKAN_RUNNER@": "0",
         "@MLIR_ENABLE_BINDINGS_PYTHON@": "0",
         "@MLIR_ENABLE_XEVM_CONVERSIONS@": "0",
+        "@MLIR_ENABLE_PYTHON_STABLE_ABI@": "0",
         "@MLIR_RUN_AMX_TESTS@": "0",
         "@MLIR_RUN_ARM_SVE_TESTS@": "0",
         "@MLIR_RUN_ARM_SME_TESTS@": "0",



More information about the llvm-commits mailing list