-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workspace] Factor to single point of control for Fortran (#22398)
As with recent work on to centralize C++ and Python toolchains, changes Drake's citations for Fortran targets and macros to use a single point of control. Also removes a vestigial version check now that Jammy is our oldest supported platform.
- Loading branch information
1 parent
f8c7471
commit 0f6b941
Showing
5 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
# This file exists to make our directory into a Bazel package, so that our | ||
# neighboring *.bzl file can be loaded elsewhere. | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
# Provides a single point of control within Drake for which fortran compiler | ||
# to use. This is cited by our fortran.bzl rules in the current directory. | ||
alias( | ||
name = "compiler", | ||
actual = "@gfortran//:compiler", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
# Provides a single point of control within Drake for which fortran runtime | ||
# libraries to link to. This may be used like it was a cc_library target that | ||
# listed linkopts= for any libraries used by Fortran. This is cited by our | ||
# fortran.bzl rules in the current directory. | ||
alias( | ||
name = "runtime", | ||
actual = "@gfortran//:runtime", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
add_lint_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters