This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Add a warning for cmake version < 3.15.
ClosedPublic

Authored by stellaraccident on Oct 12 2021, 7:37 PM.

Details

Summary

As discussed on discord, we have never actually been able to build with the project-wide published min version of 3.14.3. The buildbot that tests the Python configuration is currently pinned to 3.19.1, and there are a number of non-version/policy controlled features that Python building relies on that makes it unreliable with older versions. Some of the issues are pretty fundamental and I don't know how to do them on the older version. I think that, as an optional feature, at least advertising the PSA as in this patch is a good middle ground until the next project-wide CMake version bump.

Diff Detail

Event Timeline

stellaraccident requested review of this revision.Oct 12 2021, 7:37 PM

Move python config into a macro.

mehdi_amini added inline comments.Oct 12 2021, 8:04 PM
mlir/cmake/modules/MLIRDetectPythonEnv.cmake
9

Is this visible enough?
Should we instead make it an ERROR level?

stephenneuendorffer added inline comments.
mlir/cmake/modules/MLIRDetectPythonEnv.cmake
9

I think an ERROR would be better and recommend updating to 3.18 to fix the issue below?

This revision is now accepted and ready to land.Oct 12 2021, 8:13 PM
stellaraccident marked 2 inline comments as done.

Comments.

Landed in https://reviews.llvm.org/rG3d92722f74993969243d1400bc3257ca3d03902f (not sure why it didn't associate).

The commit message does not have the "Differential Revision: https://..."