- Notifications
You must be signed in to change notification settings - Fork 15.1k
[MLIR][Standalone] gate wheel build behind MLIR_ENABLE_BINDINGS_PYTHON=ON #161427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @llvm/pr-subscribers-mlir Author: Maksim Levental (makslevental) ChangesIf MLIR_ENABLE_BINDINGS_PYTHON=ON then StandalonePythonModules isn't a valid target. Full diff: https://github.com/llvm/llvm-project/pull/161427.diff 2 Files Affected:
diff --git a/mlir/test/Examples/standalone/lit.local.cfg b/mlir/test/Examples/standalone/lit.local.cfg index ac03503e46ea3..d4ca29c4594ff 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 not 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 |
abcd7ba to 13f3e5b Compare | LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/19783 Here is the relevant piece of the build log for the reference |
You meant MLIR_ENABLE_BINDINGS_PYTHON=OFF here right? |
| (thanks for the fix!) |
yes |
…N=ON (llvm#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.
If MLIR_ENABLE_BINDINGS_PYTHON=ON then StandalonePythonModules isn't a valid target.