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

[workspace] Simplify gfortran to be more platform-agnostic #20583

Merged

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Nov 24, 2023

Towards #14967.


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added priority: low release notes: none This pull request should not be mentioned in the release notes labels Nov 24, 2023
@jwnimmer-tri
Copy link
Collaborator Author

@drake-jenkins-bot mac-x86-monterey-clang-bazel-experimental-release please

@jwnimmer-tri
Copy link
Collaborator Author

@drake-jenkins-bot mac-x86-monterey-clang-bazel-experimental-release please

@drake-jenkins-bot linux-focal-unprovisioned-gcc-wheel-experimental-release please
@drake-jenkins-bot mac-x86-monterey-unprovisioned-clang-wheel-experimental-release please
@drake-jenkins-bot mac-arm-ventura-unprovisioned-clang-wheel-experimental-release please

@jwnimmer-tri
Copy link
Collaborator Author

+@xuchenhan-tri for feature review, please. (I'm load-balancing a multiple PR train.)

Copy link
Contributor

@xuchenhan-tri xuchenhan-tri left a comment

Choose a reason for hiding this comment

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

:lgtm: with one question.
+@SeanCurtis-TRI for platform review per rotation please.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: 1 unresolved discussion, LGTM missing from assignee SeanCurtis-TRI(platform)


tools/workspace/gfortran/repository.bzl line 13 at r1 (raw file):

    dumpversion = execute_or_fail(repo_ctx, [compiler, "-dumpversion"]).stdout
    repo_ctx.file(
        "version.bzl",

BTW, when and where is this version.bzl file used?

Copy link
Collaborator Author

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, LGTM missing from assignee SeanCurtis-TRI(platform)


tools/workspace/gfortran/repository.bzl line 13 at r1 (raw file):

Previously, xuchenhan-tri wrote…

BTW, when and where is this version.bzl file used?

At the moment there is just one place:

./tools/workspace/snopt/fortran-ubuntu.bzl:2:load("@gfortran//:version.bzl", COMPILER_MAJOR = "MAJOR")

We use it to toggle some warning flags that are annoyingly version-specific in gfortran.

Copy link
Contributor

@SeanCurtis-TRI SeanCurtis-TRI left a comment

Choose a reason for hiding this comment

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

:LGTM:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees SeanCurtis-TRI(platform),xuchenhan-tri(platform)

@SeanCurtis-TRI SeanCurtis-TRI merged commit b9dd8c8 into RobotLocomotion:master Nov 27, 2023
1 check passed
@jwnimmer-tri jwnimmer-tri deleted the os-portability-gfortran branch November 27, 2023 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low release notes: none This pull request should not be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants