Skip to content

Commit

Permalink
darshan-*: ensure proper usage of spack compilers (spack#45636)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedsnyder authored Oct 12, 2024
1 parent 4b836cb commit 8d986b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions var/spack/repos/builtin/packages/darshan-runtime/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ def configure_args(self):
extra_args.append("--with-jobid-env=%s" % job_id)
extra_args.append("--with-zlib=%s" % spec["zlib-api"].prefix)

if spec.satisfies("+mpi"):
extra_args.append("CC=%s" % self.spec["mpi"].mpicc)
else:
extra_args.append("CC=%s" % self.compiler.cc)
if "+mpi" not in spec:
extra_args.append("--without-mpi")

return extra_args
Expand Down
1 change: 0 additions & 1 deletion var/spack/repos/builtin/packages/darshan-util/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def configure_args(self):
spec = self.spec
extra_args = []

extra_args.append("CC=%s" % self.compiler.cc)
extra_args.append("--with-zlib=%s" % spec["zlib-api"].prefix)
if spec.satisfies("+apmpi"):
if self.version < Version("3.3.2"):
Expand Down

0 comments on commit 8d986b8

Please sign in to comment.