Adding extra flags to compile tests is useful for testing out new
features (e.g. -flang-experimental-hlfir) or increasing test coverage
(e.g. running optimisation passes).
Details
Diff Detail
- Repository
- rT test-suite
Event Timeline
Fortran/gfortran/CMakeLists.txt | ||
---|---|---|
346 | Instead of creating a separate env_fflags variable, it is probably better to add it to the fflags variable. That was what that local variable was intended for. Thanks for fixing the oversight. It'll have to be added in 4 places:
|
Fortran/gfortran/CMakeLists.txt | ||
---|---|---|
346 | Thanks for taking a look I think I still have to define env_fflags so that fflags is not overwritten. But I now append to fflags in the next line. Thanks for the pointers. gfortran_add_compile_tests* both call gfortran_add_compile_test, where my change is so those are both covered. gfortran_add_execute_tests* compile using a cmake generated rule. CMake already respects CMAKE_Fortran_FLAGS: https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html |
Bugfix. Appologies for the mistake and the delay fixing it - I've been
ill for a few days.
Instead of creating a separate env_fflags variable, it is probably better to add it to the fflags variable. That was what that local variable was intended for. Thanks for fixing the oversight.
It'll have to be added in 4 places: