Skip to content

Feature: Modify a profile for a specific dependency #899

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

Closed
rouson opened this issue May 9, 2023 · 2 comments
Closed

Feature: Modify a profile for a specific dependency #899

rouson opened this issue May 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@rouson
Copy link
Contributor

rouson commented May 9, 2023

Description

In attempting to build netcdf-interfaces as a dependency of inference-engine, I find that fpm 0.8.1 breaks netcdf-interfaces because the following profiles pass -Werror=implicit-interface to gfortran, whereas fpm 0.7.0 passes -Wimplicit-interface:

  • no --profile
  • --profile debug
  • --profile release

What's the best way to adjust for this change in fpm behavior with little or no change to netcdf-interfaces?

Possible Solution

I'm thinking of submitting a pull request against netcdf-interfaces with

  1. An options.rsp file containing fpm options and
  2. A modified README.md adding @options to the fpm command in the build instructions.

On a related note, it might be nice to be able to choose a specific --profile for a specific dependency without impacting the --profile for the rest of the project. Are there better approaches?

Additional Information

No response

@rouson rouson added the enhancement New feature or request label May 9, 2023
@perazz
Copy link
Member

perazz commented May 9, 2023

As of fpm 0.8, implicit typing is disabled by default on all packages.

It can be turned back on in the manifest:
https://fpm.fortran-lang.org/en/spec/manifest.html#fortran-features

though I don't know what's the effect on predefined profiles

@rouson
Copy link
Contributor Author

rouson commented May 9, 2023

@perazz that did the trick. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants