build: add a `uses_fortran()` convenience method
@@ -1634,6 +1634,9 @@ You probably should put it in link_with instead.''')
def uses_rust(self) -> bool:
return 'rust' in self.compilers
+ def uses_fortran(self) -> bool:
+ return 'fortran' in self.compilers
+
def get_using_msvc(self) -> bool:
'''
Check if the dynamic linker is MSVC. Used by Executable, StaticLibrary,
