Skip to content

Commit 1ff3e2e

Browse files
authored
[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.
1 parent e27e9ca commit 1ff3e2e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

mlir/test/Examples/standalone/lit.local.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ config.substitutions.append(("%cmake_build_type", config.cmake_build_type))
1717

1818
if not config.llvm_shared_libs_build:
1919
config.available_features.add("non-shared-libs-build")
20+
if config.enable_bindings_python:
21+
config.available_features.add("bindings-python")

mlir/test/Examples/standalone/test.wheel.toy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# C/Users/ContainerAdministrator/AppData/Local/Temp.
44
# UNSUPPORTED: target={{.*(windows).*}}
55
# REQUIRES: non-shared-libs-build
6+
# REQUIRES: bindings-python
67

78
# RUN: export CMAKE_BUILD_TYPE=%cmake_build_type
89
# RUN: export CMAKE_CXX_COMPILER=%host_cxx

0 commit comments

Comments
 (0)