mapl: fix conditional on gfortran

This commit is contained in:
Massimiliano Culpo 2025-02-04 10:33:45 +01:00
parent f8117e8182
commit da48fdd864
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -376,7 +376,7 @@ def cmake_args(self):
# Compatibility flags for gfortran # Compatibility flags for gfortran
fflags = [] fflags = []
if self.compiler.name in ["gcc", "clang", "apple-clang"]: if self["fortran"].name == "gcc":
fflags.append("-ffree-line-length-none") fflags.append("-ffree-line-length-none")
gfortran_major_ver = int(self.spec["fortran"].version[0]) gfortran_major_ver = int(self.spec["fortran"].version[0])