-
Notifications
You must be signed in to change notification settings - Fork 35
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
-coverage flag and optimization #60
Comments
Absolutely right, tomorrow I will fix this issue, thank you |
Fixed (in v1.6.8). Now if the See you. |
Stefano, thanks for the prompt fix! Just a quick note: all compilers override options listed earlier with those listed later, so your parsing of cflags is probably unnecessary as long as you make sure the user defined cflags come last of all the arguments, as these should always over ride any flags set by FoBiS.py. At any rate, explicitly parsing the user passed cflags and removing Just FYI, I think there are more optimization levels that will escape your regexp: looking at the Intel Fortran Compiler’s man page I see the following additional optimization levels are available:
It may be worthwhile to update the regexp to something like: Hope fatherhood is going well so far. Be sure to let us poor Fortran programmers know when your daughter can say “implicit none” 😄 |
Dear Izaak, you are welcome! You are right in all points, but I like parsing the flags for a better sanitization and clearness... You are rigth also for the different switch names triggering optimization. Your proposed regex is smart, monday I will use it when I will fix your other issue. However, capturing the switches of many compilers is a boring stuff, I do not intend to make the regex too comlicated for capturing also exotic switch like
|
I’m glad to hear Angelica is well! I’m sure you’re very happy but also very busy! I think that you should not mess with user specified If you want to run a regexp against the default or FoBiS.py inserted cflags, something simple like what you have or |
👍 I agree and Angelica too! |
I forget to say that now FoBiS.py follows your suggestion: it does not try to parse the cflags, but it simply add |
sounds good to me 👍 |
FoBiS.py should be adding
-O0
not-O2
when the-coverage
flag is used, otherwise inlining will lead to inaccurate coverage reports.The text was updated successfully, but these errors were encountered: