Skip to content

Commit bf24c49

Browse files
committed
Add languages as dependencies to cray-mpich
1 parent f50bf38 commit bf24c49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ci/docker/build.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ RUN if [ -d ~/site/repo ]; then \
9393
spack repo add --scope site ~/site/repo; \
9494
fi
9595

96+
# Add languages as dependencies to cray-mpich to make sure it correctly finds
97+
# compilers. Does nothing for the upstream cray-mpich.
98+
RUN sed -i '/depends_on("patchelf/a \ depends_on("c")\n depends_on("cxx")\n depends_on("fortran")' \
99+
$(spack location -p cray-mpich)/package.py
100+
96101
# Set this to a spack.yaml file which contains a spec
97102
# e.g. --build-arg SPACK_ENVIRONMENT=ci/spack/my-env.yaml
98103
ARG SPACK_ENVIRONMENT

0 commit comments

Comments
 (0)