hdf5-blosc: Update compiler selection in self-test (#3417)

This commit is contained in:
Erik Schnetter 2017-03-11 13:50:54 -05:00 committed by Adam J. Stewart
parent 093ffdfa45
commit 7e3eaba899

View File

@ -174,9 +174,9 @@ def check_install(self, spec):
with open("check.c", "w") as f: with open("check.c", "w") as f:
f.write(source) f.write(source)
if "+mpi" in spec["hdf5"]: if "+mpi" in spec["hdf5"]:
cc = which("mpicc") cc = Executable(spec["mpi"].mpicc)
else: else:
cc = which("cc") cc = Executable(self.compiler.cc)
# TODO: Automate these path and library settings # TODO: Automate these path and library settings
cc("-c", "-I%s" % spec["hdf5"].prefix.include, "check.c") cc("-c", "-I%s" % spec["hdf5"].prefix.include, "check.c")
cc("-o", "check", "check.o", cc("-o", "check", "check.o",