summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/hdf5-blosc/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5-blosc/package.py b/var/spack/repos/builtin/packages/hdf5-blosc/package.py
index 088c1e9d9b..4afce02f70 100644
--- a/var/spack/repos/builtin/packages/hdf5-blosc/package.py
+++ b/var/spack/repos/builtin/packages/hdf5-blosc/package.py
@@ -174,9 +174,9 @@ Done.
with open("check.c", "w") as f:
f.write(source)
if "+mpi" in spec["hdf5"]:
- cc = which("mpicc")
+ cc = Executable(spec["mpi"].mpicc)
else:
- cc = which("cc")
+ cc = Executable(self.compiler.cc)
# TODO: Automate these path and library settings
cc("-c", "-I%s" % spec["hdf5"].prefix.include, "check.c")
cc("-o", "check", "check.o",