hdf5-blosc: Update compiler selection in self-test (#3417)
This commit is contained in:
parent
093ffdfa45
commit
7e3eaba899
@ -174,9 +174,9 @@ def check_install(self, spec):
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user