diff options
-rw-r--r-- | mesonbuild/compilers/fortran.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index c10e2ca..3eb8f2e 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -11,9 +11,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +from pathlib import Path from typing import List import subprocess, os -from pathlib import Path +import typing from .compilers import ( CompilerType, @@ -256,6 +258,10 @@ class IntelFortranCompiler(IntelGnuLikeCompiler, FortranCompiler): def language_stdlib_only_link_flags(self): return ['-lifcore', '-limf'] + def get_dependency_gen_args(self, outtarget: str, outfile: str) -> typing.List[str]: + return ['-gen-dep=' + outtarget, '-gen-depformat=make'] + + class IntelClFortranCompiler(IntelVisualStudioLikeCompiler, FortranCompiler): file_suffixes = ['f90', 'f', 'for', 'ftn', 'fpp'] |