Skip to content

Meson examples use wrong way to specify fortran compiler #15968

Description

@Dariqq

Describe the bug

From the documentation at https://mesonbuild.com/Machine-files.html#binaries I would expect it to be fortran in [binaries] section.

The example cross files at meson/cross/none.txt and meson/cross/arm64cl.txt give the impression that the key is fc

To Reproduce

project(
  'example',
  'fortran',
  version : '0.1',
  meson_version : '>= 1.3.0',
  default_options : ['warning_level=3'],
)

Using fc like the examples suggest raises an error requesting a fortran key

meson.build:1:0: ERROR: 'fortran' compiler binary not defined in cross file [binaries] section

Using fortran works.

Expected behavior

Meson examples to be consisted with documentation and actual behaviour

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions