Skip to content
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

Simplify emcc_version using -dumpversion flag #2465

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Feb 3, 2025

This only returns the version number and no other information.

This only returns the version number and no other inforamtion.
.context("Failed to parse emcc version")?;
let version = caps.get(1).context("Failed to parse emcc version")?;
Ok(String::from_utf8(version.as_bytes().to_vec())?)
Ok(String::from_utf8(emcc.stdout)?.trim().into())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to trim an optional trailing -git from the end too.

@messense messense merged commit 2861bf1 into PyO3:main Feb 5, 2025
38 of 39 checks passed
@hoodmane hoodmane deleted the emcc-dumpversion branch February 5, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants