darshan-*: ensure proper usage of spack compilers (#45636)
This commit is contained in:
parent
4b836cb795
commit
8d986b8a99
@ -151,10 +151,7 @@ def configure_args(self):
|
|||||||
extra_args.append("--with-jobid-env=%s" % job_id)
|
extra_args.append("--with-jobid-env=%s" % job_id)
|
||||||
extra_args.append("--with-zlib=%s" % spec["zlib-api"].prefix)
|
extra_args.append("--with-zlib=%s" % spec["zlib-api"].prefix)
|
||||||
|
|
||||||
if spec.satisfies("+mpi"):
|
if "+mpi" not in spec:
|
||||||
extra_args.append("CC=%s" % self.spec["mpi"].mpicc)
|
|
||||||
else:
|
|
||||||
extra_args.append("CC=%s" % self.compiler.cc)
|
|
||||||
extra_args.append("--without-mpi")
|
extra_args.append("--without-mpi")
|
||||||
|
|
||||||
return extra_args
|
return extra_args
|
||||||
|
@ -82,7 +82,6 @@ def configure_args(self):
|
|||||||
spec = self.spec
|
spec = self.spec
|
||||||
extra_args = []
|
extra_args = []
|
||||||
|
|
||||||
extra_args.append("CC=%s" % self.compiler.cc)
|
|
||||||
extra_args.append("--with-zlib=%s" % spec["zlib-api"].prefix)
|
extra_args.append("--with-zlib=%s" % spec["zlib-api"].prefix)
|
||||||
if spec.satisfies("+apmpi"):
|
if spec.satisfies("+apmpi"):
|
||||||
if self.version < Version("3.3.2"):
|
if self.version < Version("3.3.2"):
|
||||||
|
Loading…
Reference in New Issue
Block a user