Skip to content

Conversation

TibboddiT
Copy link
Contributor

Some utsname.release values might not be fully semver compliant. For example, on one of my old android phones, uname returns this release version: 3.18.120-perf+ (see https://github.com/torvalds/linux/blob/8f5ae30d69d7543eee0d70083daf4de8fe15d585/scripts/setlocalversion#L197-L210).

This PR adds the SemanticVersion.parseUtsnameRelease function which handles versions ending with a '+' without a build version, adds / updates related tests, and updates system.zig.resolveTargetQuery to use the specialized function when populating os.version_range for relevant operating systems.

@TibboddiT TibboddiT force-pushed the feat-parse_utsname_release branch from 5d439d1 to 25f259e Compare October 2, 2025 09:44
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