23-24 September 2021
Virtual
Europe/Zurich timezone

Handling Compiler Flags in fpm (GSoC)

24 Sep 2021, 18:35
5m
ZOOM (Virtual)

ZOOM

Virtual

Fortran-lang Communications Minisymposium

Speaker

Jakub Jelínek

Description

The Fortran Package Manager (fpm) aims to be a Fortran-specific build system to simplify compiling Fortran code and using third-party dependencies.
Fpm is currently in alpha development status and supports a wide range of features.
Recent work, undertaken as part of the Google Summer of Code programme, has implemented the syntax and logic required to provide fine-grain control of compiler flags by package maintainers.
Specifying compiler flags for fpm projects is a complex problem due the existence of multiple Fortran compilers, each with their own set of flags.
Moveover, package maintainers often need to specify different flags for a variety of build profiles, such as ‘debug’ and ‘release’, as well as across a variety of target operating systems.
What is more, some packages require specific compiler flags other than the default ones built into fpm and complex projects with various package dependencies might need specific flags for each package, therefore a priority system for compiler profiles was designed and implemented.

In this presentation, detail is given on the new functionality for specifying compiler flags in fpm including: the syntax for the manifest file; the behaviour for package dependencies; and common use-case examples.

Primary author

Co-authors

Brad Richardson Laurence Kedward (University of Bristol, UK) Sebastian Ehlert (Mulliken Center for Theoretical Chemistry, Bonn)

Presentation Materials