[Mlir-commits] [mlir] [MLIR][Standalone] gate wheel build behind MLIR_ENABLE_BINDINGS_PYTHON=ON (PR #161427)

Maksim Levental llvmlistbot at llvm.org
Tue Sep 30 12:52:55 PDT 2025


https://github.com/makslevental updated https://github.com/llvm/llvm-project/pull/161427

>From 13f3e5be03074065d654912a36a3352ff6708100 Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Tue, 30 Sep 2025 12:50:12 -0700
Subject: [PATCH] [MLIR][Standalone] gate wheel build behind
 MLIR_ENABLE_BINDINGS_PYTHON=ON

---
 mlir/test/Examples/standalone/lit.local.cfg  | 2 ++
 mlir/test/Examples/standalone/test.wheel.toy | 1 +
 2 files changed, 3 insertions(+)

diff --git a/mlir/test/Examples/standalone/lit.local.cfg b/mlir/test/Examples/standalone/lit.local.cfg
index ac03503e46ea3..6cf89358f8992 100644
--- a/mlir/test/Examples/standalone/lit.local.cfg
+++ b/mlir/test/Examples/standalone/lit.local.cfg
@@ -17,3 +17,5 @@ config.substitutions.append(("%cmake_build_type", config.cmake_build_type))
 
 if not config.llvm_shared_libs_build:
     config.available_features.add("non-shared-libs-build")
+if config.enable_bindings_python:
+    config.available_features.add("bindings-python")
diff --git a/mlir/test/Examples/standalone/test.wheel.toy b/mlir/test/Examples/standalone/test.wheel.toy
index 17d8cb5b246c9..5ff927129793b 100644
--- a/mlir/test/Examples/standalone/test.wheel.toy
+++ b/mlir/test/Examples/standalone/test.wheel.toy
@@ -3,6 +3,7 @@
 # C/Users/ContainerAdministrator/AppData/Local/Temp.
 # UNSUPPORTED: target={{.*(windows).*}}
 # REQUIRES: non-shared-libs-build
+# REQUIRES: bindings-python
 
 # RUN: export CMAKE_BUILD_TYPE=%cmake_build_type
 # RUN: export CMAKE_CXX_COMPILER=%host_cxx



More information about the Mlir-commits mailing list