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
Add is_clang_based compiler property #43376
base: develop
Are you sure you want to change the base?
Conversation
FYI @bernhardkaindl |
I like this! Do the IBM Clang compilers also apply? However, I think Spack doesn't recognize them at this moment? |
@pranav-sivaraman I added the property with return value True for all the clang compilers present to the best of my ability, so if/when merged, the same should be done for any other clang-based compilers added in the future. I didn't see the clang version of the IBM XL compilers in the configurations, if that's what you're referring to specifically, so yes as far as I know those are not supported yet. |
but what does it mean? :) you need to document how this is supposed to be used. |
@haampie just added it to packaging_guide.rst, let me know if there's an appropriate place to put it in addition or instead. |
Documenting its existence in insufficient. The question is what is guaranteed by |
Can you elaborate on what you mean by guaranteed, and where that documentation should go? |
Take for instance Apple Clang. It has explicitly disabled direct use of Can you show where you would like to use this function? |
Having a link to #43357 (review) would have helped getting the context |
Thanks for clarifying. Yes, that boost issue was the immediate motivation here. Other places where I think it's likely to be useful would be the few dozen packages that have some kind of |
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.
Thanks, this will clean up a fair number of packages and prevent further errors.
It looks like rocm
doesn't have a compilers test?
It appears not. |
This PR adds a property to compilers called
is_clang_based
, and sets it to True for clang-based compilers. This will save us copying and pasting lists of clang-based compilers across recipes when clang-specific compiler flags etc. are needed.