OpenMPI: require compilers for F77 and "modern" Fortran (#39266)
This commit is contained in:
parent
7327d2913a
commit
a07afa6e1a
@ -897,7 +897,7 @@ def die_without_fortran(self):
|
||||
# Until we can pass variants such as +fortran through virtual
|
||||
# dependencies depends_on('mpi'), require Fortran compiler to
|
||||
# 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!")
|
||||
|
||||
@when("@main")
|
||||
|
Loading…
Reference in New Issue
Block a user