summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorQuellynSnead <quellyn@lanl.gov>2023-03-08 01:58:34 -0700
committerGitHub <noreply@github.com>2023-03-08 09:58:34 +0100
commit80d784c401a7bee7c3d2a5aacf42f12f240c5f48 (patch)
treeab4add6f53536623e93d073a73e27b570ff7a2a9 /var
parent5b3ad0adaa437388051dcec86bc31dc9de3663a4 (diff)
downloadspack-80d784c401a7bee7c3d2a5aacf42f12f240c5f48.tar.gz
spack-80d784c401a7bee7c3d2a5aacf42f12f240c5f48.tar.bz2
spack-80d784c401a7bee7c3d2a5aacf42f12f240c5f48.tar.xz
spack-80d784c401a7bee7c3d2a5aacf42f12f240c5f48.zip
singularity-eos: (#35625)
The Cray fortran compiler names fortran modules in uppercase by default. Compile with the "-ef" flag to produce the lowercase name that singularity-eos is expecting.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/singularity-eos/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/singularity-eos/package.py b/var/spack/repos/builtin/packages/singularity-eos/package.py
index 297d714dd2..ef4ba1a5f1 100644
--- a/var/spack/repos/builtin/packages/singularity-eos/package.py
+++ b/var/spack/repos/builtin/packages/singularity-eos/package.py
@@ -106,6 +106,16 @@ class SingularityEos(CMakePackage, CudaPackage):
depends_on("py-h5py" + _flag, when="@:1.6.2 " + _flag)
depends_on("kokkos-nvcc-wrapper" + _flag, when="+cuda+kokkos" + _flag)
+ def flag_handler(self, name, flags):
+ if name == "fflags":
+ if self.spec.satisfies("%cce+fortran"):
+ # The Cray fortran 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.
+ flags.append("-ef")
+ return (flags, None, None)
+
def cmake_args(self):
args = [
self.define("SINGULARITY_PATCH_MPARK_VARIANT", False),