Fix case when GCC_VERSION is set to "auto"

This commit is contained in:
Matthias Krack 2026-02-09 16:40:22 +01:00
parent 8173ab3892
commit 4c552869df

View file

@ -609,7 +609,7 @@ if [[ ! -d "${SPACK_BUILD_PATH}" ]]; then
fi
# Disable PEXSI because of an issue with SuperLU using recent GCC versions
if [[ "${CP2K_VERSION}" == "psmp"* ]] && ((GCC_VERSION > 14)); then
if [[ "${CP2K_VERSION}" == "psmp"* ]] && ((GCC_VERSION_NEWEST > 14)); then
sed -E -e '/\s*-\s+"pexsi@/ s/^ /#/' -i "${CP2K_CONFIG_FILE}"
echo "INFO: PEXSI has been disabled because of an issue with SuperLU using GCC 15 or newer"
fi