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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Sep 30 13:06:40 PDT 2025


Author: Maksim Levental
Date: 2025-09-30T20:06:36Z
New Revision: 1ff3e2e2805fe4a8284a688fbd7b3863826d9629

URL: https://github.com/llvm/llvm-project/commit/1ff3e2e2805fe4a8284a688fbd7b3863826d9629
DIFF: https://github.com/llvm/llvm-project/commit/1ff3e2e2805fe4a8284a688fbd7b3863826d9629.diff

LOG: [MLIR][Standalone] gate wheel build behind MLIR_ENABLE_BINDINGS_PYTHON=ON (#161427)

If MLIR_ENABLE_BINDINGS_PYTHON=ON then
[StandalonePythonModules](https://github.com/llvm/llvm-project/blob/main/mlir/examples/standalone/pyproject.toml#L38)
isn't a valid target.

Added: 
    

Modified: 
    mlir/test/Examples/standalone/lit.local.cfg
    mlir/test/Examples/standalone/test.wheel.toy

Removed: 
    


################################################################################
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