File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9
9
' b_ndebug=if-release' ,
10
10
' c_std=c17' ,
11
11
' cpp_std=c++17' ,
12
- ' fortran_std=legacy' ,
13
12
' blas=openblas' ,
14
13
' lapack=openblas'
15
14
],
80
79
# Adding at project level causes many spurious -lgfortran flags.
81
80
add_languages (' fortran' , native : false )
82
81
ff = meson .get_compiler(' fortran' )
82
+ if ff.get_id() == ' gcc'
83
+ # -std=legacy is not supported by all Fortran compilers, but very useful with
84
+ # gfortran since it avoids a ton of warnings that we don't care about.
85
+ # Needs fixing in Meson, see https://github.com/mesonbuild/meson/issues/11633.
86
+ add_project_arguments (' -std=legacy' , language : ' fortran' )
87
+ endif
88
+
83
89
if ff.has_argument(' -Wno-conversion' )
84
90
add_project_arguments (' -Wno-conversion' , language : ' fortran' )
85
91
endif
You can’t perform that action at this time.
0 commit comments