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

system: OS type query #942

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

Merged
perazz merged 5 commits into fortran-lang:master from perazz:os_query
Mar 7, 2025
Merged

system: OS type query #942

perazz merged 5 commits into fortran-lang:master from perazz:os_query
Mar 7, 2025

Conversation

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

zoziha and jalvesz reacted with thumbs up emoji
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 reacted with rocket emoji
Copy link
Member Author

perazz commented Mar 7, 2025
edited
Loading

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
Reviewers

@jvdp1 jvdp1 jvdp1 approved these changes

@jalvesz jalvesz jalvesz approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /