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
|
# 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")
|
||||||
|
Loading…
Reference in New Issue
Block a user