1
1

gen-mpi-sizeof.pl: don't generate sub for headers

We only need the dummy subroutine when we're generating the body of a
file -- not when we're generating headers.
Этот коммит содержится в:
Jeff Squyres 2015-08-20 14:24:45 -07:00
родитель edf485716e
Коммит ede9fc17b0

Просмотреть файл

@ -224,8 +224,10 @@ sub output_file {
! it).
!
! If you want support for MPI_SIZEOF, please use a different Fortran
! compiler to build Open MPI.
! compiler to build Open MPI.\n\n";
if ($want_bodies) {
print OUT "!
! Dummy subroutine, just so that there is *some* Fortran in this file
! (some compilers are unhappy if there are no Fortran statements in this
! file).
@ -235,6 +237,7 @@ subroutine ompi_sad_panda()
print *, 'Open MPI is a sad panda because your Fortran compiler'
print *, 'does not support enough Fortran mojo for MPI_SIZEOF'
end subroutine ompi_sad_panda\n\n";
}
}
close(OUT);