-
Notifications
You must be signed in to change notification settings - Fork 108
--flag doesn't override the default flags even without --profile #998
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
Comments
This behavior started with version 0.8.0. Version 0.7.0 behaves as expected in accordance with my interpretation of the output of |
I believe you're looking for Fortran features support in Documentation: https://fpm.fortran-lang.org/spec/manifest.html#implicit-typing [fortran]
implicit-typing = true # default: false
implicit-external = true # default: false
source-form = "fixed" # "free" (default), or "default" (compiler default) |
@perazz thanks! I think we should also change the language in the |
PR #999 addresses this issue. |
Thank you @rouson for the fix, if you think this issue is closed as far as you're concerned, let's close also this page soon. |
Done. |
Description
fpm --help
reports "--flag FFLAGS selects compile arguments for the build, the default value is set by the FPM_FFLAGS environment variable. These are added to the profile options if --profile is specified, else these options override the defaults..." But the following transcript excerpt appears to demonstrate otherwise:whereupon I see output that includes lines like
I'm attempting to build some code that uses fixed-source form, implicit typing, and implicit interfaces. I plan to switch the code to free-source form with no implicit typing and no implicit interfaces, but I didn't write the code so I'd prefer to be able to build the code as is and write tests that will verify that my changes don't break anything. So at least initially, I'd like to override the
fpm
's default flags, namely-fimplicit-none -Werror=implicit-interface -ffree-form
.Expected Behaviour
I expected that passing
--flag "-O1"
would override the default flags.Version of fpm
0.10.0
Platform and Architecture
macOS/Arm
Additional Information
I also tried setting
FPM_FFLAGS
and that didn't override the defaults either.The text was updated successfully, but these errors were encountered: