Fortran suffix improvingness.

This commit is contained in:
Jussi Pakkanen 2014-08-01 16:33:30 +03:00
parent bfacc7ef8c
commit 8cac567ced
1 changed files with 2 additions and 1 deletions

View File

@ -1194,7 +1194,8 @@ end program prog
return ['-o', outputname]
def can_compile(self, src):
if src.lower().endswith('.f95'):
suffix = os.path.splitext(src)[1].lower()
if suffix == '.f' or suffix == '.f95':
return True
return False