Toolchain: Fix caching in install_elpa.sh

This commit is contained in:
Ole Schütt 2022-04-25 18:40:14 +02:00 committed by Ole Schütt
parent 452edd363d
commit a1667111d3

View file

@ -47,6 +47,17 @@ case "$with_elpa" in
echo "==================== Installing ELPA ===================="
pkg_install_dir="${INSTALLDIR}/elpa-${elpa_ver}"
install_lock_file="$pkg_install_dir/install_successful"
enable_openmp="yes"
# specific settings needed on CRAY Linux Environment
if [ "$ENABLE_CRAY" = "__TRUE__" ]; then
if [ ${CRAY_PRGENVCRAY} ]; then
# extra LDFLAGS needed
cray_ldflags="-dynamic"
fi
enable_openmp="no"
fi
if verify_checksums "${install_lock_file}"; then
echo "elpa-${elpa_ver} is already installed, skipping it."
else
@ -74,17 +85,6 @@ case "$with_elpa" in
patch -p1 < "${patch}"
done
enable_openmp="yes"
# specific settings needed on CRAY Linux Environment
if [ "$ENABLE_CRAY" = "__TRUE__" ]; then
if [ ${CRAY_PRGENVCRAY} ]; then
# extra LDFLAGS needed
cray_ldflags="-dynamic"
fi
enable_openmp="no"
fi
# ELPA-2017xxxx enables AVX2 by default, switch off if machine doesn't support it.
AVX_flag=""
AVX512_flags=""