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

system: OS type query #942

Merged
merged 5 commits into from
Mar 7, 2025
Merged

system: OS type query #942

merged 5 commits into from
Mar 7, 2025

Conversation

perazz
Copy link
Member

@perazz perazz commented Mar 3, 2025

This PR is spun off #904 for clarity.

Add OS detection routines:

  • get_runtime_os – Determines the OS at runtime using environment checks.
  • OS_TYPE – Cached version of get_runtime_os for efficiency.
  • OS_NAME – Return the OS name as a string.

Test programs require that stdlib is never run on an unknown OS.

cc: @jvdp1 @jalvesz

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @perazz

@perazz
Copy link
Member Author

perazz commented Mar 7, 2025

Thank you @jvdp1 @jalvesz, with two approvals, let's merge this PR soon, so we can continue discussing more system-related functions.

@perazz perazz merged commit d724658 into fortran-lang:master Mar 7, 2025
14 checks passed
@perazz perazz deleted the os_query branch March 7, 2025 10:41
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.

3 participants