hdf5: support for Cray Fortran Compiler (#25466)

This commit is contained in:
Sergey Kosukhin 2021-08-20 15:00:14 +02:00 committed by GitHub
parent b1755c4fb3
commit c0bb2b9943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,12 @@ def flag_handler(self, name, flags):
if self.spec.satisfies('@:1.8.12+cxx~shared'): if self.spec.satisfies('@:1.8.12+cxx~shared'):
cmake_flags.append(self.compiler.cxx_pic_flag) cmake_flags.append(self.compiler.cxx_pic_flag)
elif name == "fflags": elif name == "fflags":
if self.spec.satisfies('%cce+fortran'):
# Cray compiler generates module files with uppercase names by
# default, which is not handled by the CMake scripts. The
# following flag forces the compiler to produce module files
# with lowercase names.
cmake_flags.append('-ef')
if self.spec.satisfies('@:1.8.12+fortran~shared'): if self.spec.satisfies('@:1.8.12+fortran~shared'):
cmake_flags.append(self.compiler.fc_pic_flag) cmake_flags.append(self.compiler.fc_pic_flag)
elif name == "ldlibs": elif name == "ldlibs":