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

Properly handle compiler versions #334

Merged
merged 285 commits into from
Aug 19, 2024
Merged

Conversation

lukehoffmann
Copy link
Collaborator

This PR covers issue #318

Compiler.get_version() will return a tuple of integer values, e.g. (8, 5, 0) instead of the string "8.5.0". This makes it possible to do greater-than and lesser-than comparisons with required compiler versions.

The different compiler classes will also verify that the version output contains the expected compiler name.

hiker and others added 30 commits March 26, 2024 11:05
lukehoffmann and others added 24 commits July 16, 2024 15:46
Assume these compilers don't need to be hashed.
Saves dealing with empty tuples.
Includes other cleanup from PR comments
Provides default version command that can be overridden for other compilers.
Also fix some incorrect tests
Other tidying
Mixins have static methods with unique names,
overrides only happen in concrete classes
@lukehoffmann lukehoffmann marked this pull request as ready for review August 14, 2024 07:50
source/fab/tools/compiler.py Show resolved Hide resolved
source/fab/tools/compiler.py Show resolved Hide resolved
Copy link
Collaborator

@allynt allynt left a comment

Choose a reason for hiding this comment

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

All my comments have been addressed. So I am approving this.

@allynt allynt merged commit d0a92e8 into MetOffice:master Aug 19, 2024
5 checks passed
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.

5 participants