Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mpy-cross: exit with error if arch not given when needed, and addemit=host option to help#17349

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dpgeorge wants to merge2 commits intomicropython:master
base:master
Choose a base branch
Loading
fromdpgeorge:mpy-cross-fix-no-arch

Conversation

dpgeorge
Copy link
Member

Summary

This PR addresses two minor issues withmpy-cross:

  1. mpy-cross will crash if called asmpy-cross -X emit=native foo.py, because it tries to use the native emitter with no target architecture set; fixed by checking that an architecture is set when-X emit=native orX emit=viper is used
  2. document the availability of the-X emit=host option in the help

Testing

Tested by runningmpy-cross -X emit=native, it now raises an exception.

Also ranmpy-cross -h to see the modified help message.

@dpgeorgedpgeorge added the py-coreRelates to py/ directory in source labelMay 23, 2025
@codecovCodecov
Copy link

codecovbot commentedMay 23, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.54%. Comparing base(49f81d5) to head(1ccabcf).

Additional details and impacted files
@@           Coverage Diff           @@##           master   #17349   +/-   ##=======================================  Coverage   98.54%   98.54%           =======================================  Files         169      169             Lines       21898    21898           =======================================  Hits        21579    21579             Misses        319      319

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Damien George <damien@micropython.org>
Signed-off-by: Damien George <damien@micropython.org>
@dpgeorgedpgeorgeforce-pushed thempy-cross-fix-no-arch branch from1c1570d to1ccabcfCompareMay 23, 2025 13:02
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
py-coreRelates to py/ directory in source
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@dpgeorge

[8]ページ先頭

©2009-2025 Movatter.jp