add support to silence deprecation warning for easyconfigs and toolchains#4207
Merged
jfgrimm merged 5 commits intoeasybuilders:developfrom Feb 24, 2023
Merged
Conversation
jfgrimm
reviewed
Feb 21, 2023
jfgrimm
reviewed
Feb 21, 2023
Co-authored-by: Jasper <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Use the empty list as the default both in the option-add and the reverse dict. This way we can remove the post-processing step changing `None` to `[]`.
This changes `(type comma-separated list; default: )` to `(type comma-separated list)` similar to a default of `None`.
6f00f57 to
89eb00f
Compare
Contributor
Author
|
This now adds a new change: Only print "default: " for str-list options if it is not empty. That changes the output of
This can be discussed (if needed) in a separate PR I just opened with only that commit: #4220 |
…ramework into silence-ec-tc-deprecation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We have the
silence_deprecation_warningsoption but that didn't support the warnings caused by deprecated ECs and toolchains.Add this and enhance the error message.
While at it also make the build_option return an empty list instead of
Noneso we can grep the code for any usage likeif 'foo' in build_option('silence_deprecation_warnings'):