Skip to content

periareon/rules_fortran

Repository files navigation

rules_fortran

Bazel rules for Fortran: build, test, and configure Fortran code with Bazel toolchains and rules.

Quickstart

  1. Add the module extension to your MODULE.bazel:
bazel_dep(name = "rules_fortran", version = "<latest>")
  1. Define a simple binary in BUILD.bazel:
load("//fortran:defs.bzl", "fortran_binary")

fortran_binary(
    name = "hello_world",
    srcs = ["hello_world.f90"],
)

For full setup details, rule reference, and more examples, see the docs: https://periareon.github.io/rules_fortran/

Releases

No releases published

Packages

 
 
 

Contributors