summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2017-03-11 13:50:54 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-11 12:50:54 -0600
commit7e3eaba89968ac95d7d376b8444786de9ebab834 (patch)
tree5bec9ecd84ab1290fa74b0c41b43606e32adaaa1 /var
parent093ffdfa45bdbdddab6be5597c6b04d4bee106a7 (diff)
downloadspack-7e3eaba89968ac95d7d376b8444786de9ebab834.tar.gz
spack-7e3eaba89968ac95d7d376b8444786de9ebab834.tar.bz2
spack-7e3eaba89968ac95d7d376b8444786de9ebab834.tar.xz
spack-7e3eaba89968ac95d7d376b8444786de9ebab834.zip
hdf5-blosc: Update compiler selection in self-test (#3417)
Diffstat (limited to 'var')
-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",