OpenMPI: require compilers for F77 and "modern" Fortran (#39266)

This commit is contained in:
Paul Kuberry 2023-08-08 05:10:27 -04:00 committed by GitHub
parent 7327d2913a
commit a07afa6e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -897,7 +897,7 @@ def die_without_fortran(self):
# Until we can pass variants such as +fortran through virtual # Until we can pass variants such as +fortran through virtual
# dependencies depends_on('mpi'), require Fortran compiler to # dependencies depends_on('mpi'), require Fortran compiler to
# avoid delayed build errors in dependents. # avoid delayed build errors in dependents.
if (self.compiler.f77 is None) or (self.compiler.fc is None): if (self.compiler.f77 is None) and (self.compiler.fc is None):
raise InstallError("OpenMPI requires both C and Fortran compilers!") raise InstallError("OpenMPI requires both C and Fortran compilers!")
@when("@main") @when("@main")