Skip to content

Conversation

@jwhear
Copy link
Contributor

@jwhear jwhear commented Feb 16, 2023

Partially resolves #1981

This implements os.machine for Linux only. It appears that OS X has uname (see this man page), but the Zig os package doesn't implement it. High road for Mac support is probably to contribute the implementation to the Zig std lib.

For unsupported platforms "unknown" is returned.

Copy link
Contributor

@Kapsonfire Kapsonfire left a comment

Choose a reason for hiding this comment

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

looks good, i think @Jarred-Sumner will suggest some osx code for it.. good starting point

@Jarred-Sumner Jarred-Sumner merged commit d95404f into oven-sh:main Feb 16, 2023
@Jarred-Sumner
Copy link
Collaborator

Thanks

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.

Add os.machine()

3 participants