Allow mpy-cross to exclude source lines - #19080
Merged
Merged
Conversation
romanz
marked this pull request as draft
April 10, 2026 18:17
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19080 +/- ##
=======================================
Coverage 98.46% 98.47%
=======================================
Files 176 176
Lines 22802 22845 +43
=======================================
+ Hits 22453 22497 +44
+ Misses 349 348 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Code size report: |
romanz
force-pushed
the
romanz/upstream/source-lines
branch
2 times, most recently
from
April 10, 2026 19:31
ddd5112 to
a0127ac
Compare
romanz
force-pushed
the
romanz/upstream/source-lines
branch
from
April 13, 2026 06:42
a0127ac to
b8de9f7
Compare
romanz
marked this pull request as ready for review
April 13, 2026 07:37
Contributor
|
Is a shame that there is a 8-16 bytes growth in firmware, is there a way to reduce /avoid that? |
dpgeorge
reviewed
May 11, 2026
romanz
force-pushed
the
romanz/upstream/source-lines
branch
from
June 1, 2026 07:28
815072c to
08fc33e
Compare
dpgeorge
reviewed
Jun 2, 2026
dpgeorge
approved these changes
Jun 2, 2026
dpgeorge
left a comment
Member
There was a problem hiding this comment.
Thanks for updating! Looks good now.
This would allow building debug FW without source line data. Signed-off-by: Roman Zeyde <[email protected]>
romanz
force-pushed
the
romanz/upstream/source-lines
branch
from
June 2, 2026 14:45
9405a1d to
425318d
Compare
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.
This would allow building debug FW without source line data (following #19078).
Testing
Tested locally with trezor#29, on x86 emulator & stm32 device.
Trade-offs and Alternatives
Before this PR,
mpy-crossneeds to be built withMICROPY_ENABLE_SOURCE_LINE=0to exclude source line data, since there is no command-line flag (except-O3which also disables all debug-related features).Generative AI
I did not use generative AI tools when creating this PR.