-
Notifications
You must be signed in to change notification settings - Fork 484
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
Adopt manylinux fix from https://reviews.llvm.org/D111383 #357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the CMake version requirements are here, but I had that conditional since MLIR's minimum is currently 3.13. Looks good to me either way.
Note to self: retry this after we update to an LLVM version that has pulled in Mike's change. Seems to not work at the moment and we suspect it is cmake getting confused by MLIR asking for Development vs Torch-MLIR asking for Development.Module. |
FYI I think this build error may be related to both MLIR and the downstream project (Torch-MLIR in this case) re-using the same CMake variable. I added EDIT: I think there might still be an issue here, unrelated to |
@silvasean I think this should be good to pick up on the next integration with upstream. The confusion I had previously was related to a configuration with several external projects calling |
@mikeurbach on chat I remember seeing some breakage related to this flying by, is this still the preferred pattern or is there a new recommended pattern? |
I think the main thing is to be consistent with how upstream MLIR calls find_package, and @stellaraccident added a helper for that: https://github.com/llvm/llvm-project/blob/c2f2c6b103bf6c481f937cbb5a44c721d416a3fe/mlir/CMakeLists.txt#L110. If you just call that, it should work. Let me know if not and I can try to help. |
Ok cool. Looks like Stella updated us. Will close this PR then. |
* implement Signed-off-by: chentong <chentong@us.ibm.com> * refine Signed-off-by: chentong <chentong@us.ibm.com> * use tempdir Signed-off-by: chentong <chentong@us.ibm.com> * docs Signed-off-by: chentong <chentong@us.ibm.com>
No description provided.