Skip to content

Add documentation for toggling Fortran features #98

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

Merged
merged 1 commit into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions pages/spec/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ Every manifest file consists of the following sections:
Link with external dependencies
- [*external-modules*](#use-system-installed-modules):
Specify modules used that are not within your fpm package
- Fortran configuration:
- [*implicit-typing*](#implicit-typing):
Toggle default implicit typing
- [*implicit-external*](#implicit-external):
Toggle implicit external interfaces
- [*source-form*](#source-form):
Select source form for project
- Target sections:
- [*library*](#library-configuration)
Configuration of the library target
Expand Down Expand Up @@ -426,6 +433,47 @@ auto-tests = false
```


## Fortran features

Allows to enable and disable specific language features


### Implicit typing

Allows to toggle whether the default implicit typing should be used.
The default option is ``false``.

```toml
[fortran]
implicit-typing = true # default: false
```


### Implicit external

Allows to toggle whether external interfaces can be declared implicitly.
The default option is ``false``.

```toml
[fortran]
implicit-external = true # default: false
```


### Source form

Allows to specifiy the source form to be used for all files in the project.
Possible choices are ``"free"`` to assume all files are free form source,
``"fixed"`` to assume all files are fixed form source,
and ``"default"`` to let the compiler decide based on its own heuristics.
The default option is ``"free"``.

```toml
[fortran]
source-form = "fixed" # default: "free"
```


## Specifying dependencies

Dependencies can be declared in the *dependencies* table in the manifest root or the [*executable*](#executable-targets) or [*test*](#test-targets) sections.
Expand Down