Repository navigation
Conversation
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20076 +/- ##
==========================================
- Coverage 98.60% 98.57% -0.04%
==========================================
Files 182 182
Lines 23436 23436
Branches 5 5
==========================================
- Hits 23110 23101 -9
- Misses 325 334 +9
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code size report: |
Contributor
Author
|
This and #20076 will conflict. It's probably easier to rebase this one after that one is merged. |
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.
Summary
Build the compiler plugin with a Python script which can be used from make or cmake. This allows it to work with rp2 and esp32 builds.
Still not supported: rp2 riscv and zephyr due to missing gcc-plugin.h. (a limitation of the upstream toolchains for these ports)
This also should fix the problem that the plugin in auto mode would enable for clang in some circumstances.
It also adds the ability to print enums with %u etc.
Testing
I ran the CI in my branch and spot checked that the plugin was used when expected. I also fixed one format string bug on esp32.
Trade-offs and Alternatives
A Python script seemed preferable to a shell script.
Generative AI
I did not use generative AI tools when creating this PR.