diff --git a/var/spack/repos/builtin/packages/scorep/package.py b/var/spack/repos/builtin/packages/scorep/package.py index bc6ea1b4c9..cf0baf5164 100644 --- a/var/spack/repos/builtin/packages/scorep/package.py +++ b/var/spack/repos/builtin/packages/scorep/package.py @@ -99,7 +99,8 @@ def configure_args(self): ] cname = spec.compiler.name - config_args.append("--with-nocross-compiler-suite={0}".format(cname)) + if not spec.satisfies("platform=cray"): + config_args.append("--with-nocross-compiler-suite={0}".format(cname)) if self.version >= Version("4.0"): config_args.append("--with-cubew=%s" % spec["cubew"].prefix.bin) @@ -118,7 +119,8 @@ def configure_args(self): config_args.append("--with-libunwind=%s" % spec["libunwind"].prefix) config_args += self.with_or_without("shmem") - config_args += self.with_or_without("mpi") + if not spec.satisfies("platform=cray"): + config_args += self.with_or_without("mpi") if spec.satisfies("^intel-mpi"): config_args.append("--with-mpi=intel3")