-
Notifications
You must be signed in to change notification settings - Fork 15.7k
[OpenMP] Fix LLVM_ENABLE_PROJECTS=openmp build #151117
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
| # See https://github.com/llvm/llvm-project/issues/124014 | ||
| if (NOT LLVM_RUNTIMES_BUILD AND "openmp" IN_LIST LLVM_ENABLE_PROJECTS) | ||
| set(LLVM_TREE_AVAILABLE True) | ||
| endif () |
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.
I am not an expert in build infrastructure of OpenMP in LLVM, but if we say the mode is deprecated, then why should we continue making changes in the code and keep supporting it? Let's update the documents and fully deprecate LLVM_ENABLE_PROJECTS=openmp?
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.
Deprecation is just a notice that it is going to be removed to encourage users to move away from it. Until it really is removed, is should still work (or why would one keep non-working code around?).
jprotze
left a comment
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.
Lgtm
The build mode has been deprecated in llvm#136314. According to the deprecation message, it was supposed to be removed in the LLVM 21 release. Each build mode increased the maintanance overhead when failing, such as in llvm#151117. Let's remove it in LLVM 22.
Set LLVM_TREE_AVAILABLE when not defined after #149871. In particular, the LLVM build tree is obviously available with
add_subdirectory(openmp)from the LLVM build tree itself. Note that this build mode is deprecated since #136314.