Skip to content

Commit

Permalink
Fix lowercase modules in scoprio with crayclang
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Jan 26, 2024
1 parent 29c566e commit 084edea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion var/spack/repos/builtin/packages/scorpio/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def cmake_args(self):
env["CC"] = spec["mpi"].mpicc
env["CXX"] = spec["mpi"].mpicxx
env["FC"] = spec["mpi"].mpifc
src = self.stage.source_path
args = [
define("NetCDF_C_PATH", spec["netcdf-c"].prefix),
define("NetCDF_Fortran_PATH", spec["netcdf-fortran"].prefix),
Expand All @@ -65,4 +64,9 @@ def cmake_args(self):
define_from_variant("PIO_ENABLE_TOOLS ", "tools"),
define_from_variant("PIO_USE_MALLOC", "malloc"),
])
if spec.satisfies("%cce"):
# force lowercase fortran modules
args.extend([
define("CMAKE_Fortran_FLAGS", "-em -ef")
])
return args

0 comments on commit 084edea

Please sign in to comment.