Reviewing the default compiler options defined in cmake/DefaultFlags.cmake #297
Replies: 7 comments 10 replies
-
Useful links concerning GFortran: |
Beta Was this translation helpful? Give feedback.
-
Concerning ifx debug mode, we should probably add the option
|
Beta Was this translation helpful? Give feedback.
-
I think for the standard there are three possible ways:
the |
Beta Was this translation helpful? Give feedback.
-
One reason to use But I have just discovered that CMake offers more than DEBUG and RELEASE build types: You can even define your own custom types. We could therefore define DEBUG and RELEASE flags for the users, and I could define also my own DEV flags when developing the library: set(
CMAKE_Fortran_FLAGS_DEV_INIT
...
) which could be chosen with the CMake option |
Beta Was this translation helpful? Give feedback.
-
yes, you could do something like this, but why? But at the moment it is only in your debug mode, and the user could get stuck while on your side everything seems to be alright ;) |
Beta Was this translation helpful? Give feedback.
-
I am also working on Flang flags. For the moment a few errors occur during the build, but they can be ignored with Flang has $ flang --version
flang version 20.1.3 (Fedora 20.1.3-1.fc42) |
Beta Was this translation helpful? Give feedback.
-
Concerning GFortran, I have removed:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The default compiler options for DEBUG and RELEASE modes are defined in
cmake/DefaultFlags.cmake
. The main compiler used for the development of gtk-fortran is GFortran. The second one is Intel ifx which allows to obtain other warnings.cmake/DefaultFlags.cmake
file?-std=f2008
). Should it be completely removed, or put in RELEASE mode, should it be set also for ifx?-pedantic
option is used in the DEBUG mode with GFortran, to exclude Fortran extensions. If-std=f2008
is removed, will-pedantic
still have an effect?Beta Was this translation helpful? Give feedback.
All reactions