summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoradityakavalur <33232772+adityakavalur@users.noreply.github.com>2020-10-27 14:24:09 -0400
committerGitHub <noreply@github.com>2020-10-27 13:24:09 -0500
commit9f89a7e9f7ce279e4b47ec06a9ffb90a453b2f7a (patch)
treeaf10e1fcd3307f9e4109ea81001bb786bb6c9674 /var
parent7313cf5ea5df6d4c35277b4bcd1853ee91948e8a (diff)
downloadspack-9f89a7e9f7ce279e4b47ec06a9ffb90a453b2f7a.tar.gz
spack-9f89a7e9f7ce279e4b47ec06a9ffb90a453b2f7a.tar.bz2
spack-9f89a7e9f7ce279e4b47ec06a9ffb90a453b2f7a.tar.xz
spack-9f89a7e9f7ce279e4b47ec06a9ffb90a453b2f7a.zip
Update package.py (#19513)
On Cori(Cray-XC40), I need to pass the entire path for the compilers, this is what is saved in c_compiler, cpp_compiler, f_compiler. Therefore, when for the MPI wrappers only the binary name is provided I run into the same issue. There is no drawback of passing the entire path, this is set by the user through the compiler path anyways.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/conduit/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py
index a830def9e3..7b6edf21f9 100644
--- a/var/spack/repos/builtin/packages/conduit/package.py
+++ b/var/spack/repos/builtin/packages/conduit/package.py
@@ -480,9 +480,9 @@ class Conduit(Package):
# etc make return the spack compiler wrappers
# which can trip up mpi detection in CMake 3.14
if spec['mpi'].mpicc == spack_cc:
- mpicc_path = "cc"
- mpicxx_path = "CC"
- mpifc_path = "ftn"
+ mpicc_path = c_compiler
+ mpicxx_path = cpp_compiler
+ mpifc_path = f_compiler
cfg.write(cmake_cache_entry("ENABLE_MPI", "ON"))
cfg.write(cmake_cache_entry("MPI_C_COMPILER", mpicc_path))
cfg.write(cmake_cache_entry("MPI_CXX_COMPILER", mpicxx_path))