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

stdlib version information function #576

Closed
ghost opened this issue Nov 25, 2021 · 1 comment · Fixed by #579
Closed

stdlib version information function #576

ghost opened this issue Nov 25, 2021 · 1 comment · Fixed by #579
Labels
idea Proposition of an idea and opening an issue to discuss it

Comments

@ghost
Copy link

ghost commented Nov 25, 2021

Motivation

It would be good to have a function stdlib_version()

function stdlib_version() result(r)
    character(len=:), allocatable :: r
    r = "v0.1.0"
end function

This information is useful for external build tools, and for bug reporting.

Prior Art

No response

Additional Information

No response

@ghost ghost added the idea Proposition of an idea and opening an issue to discuss it label Nov 25, 2021
@awvwgk
Copy link
Member

awvwgk commented Nov 25, 2021

Good idea, we should have this information available.

I added a patch to handle the version information automatically in CMake, make and fpm. As well as providing a preliminary getter function to retrieve the version data either as numeric values or as string in #579. Feedback is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Proposition of an idea and opening an issue to discuss it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant