Avoid double slashes in compiler path

This commit is contained in:
Matthias Krack 2023-03-03 11:10:13 +01:00
parent 1dc108cb20
commit 69bb5539cc

View file

@ -28,9 +28,9 @@ case "${with_intel}" in
;;
__SYSTEM__)
echo "==================== Finding Intel compiler from system paths ===================="
check_command icc "intel" && CC="$(command -v icc)" || exit 1
check_command icpc "intel" && CXX="$(command -v icpc)" || exit 1
check_command ifort "intel" && FC="$(command -v ifort)" || exit 1
check_command icc "intel" && CC="$(realpath $(command -v icx))" || exit 1
check_command icpc "intel" && CXX="$(realpath $(command -v icpx))" || exit 1
check_command ifort "intel" && FC="$(realpath $(command -v ifort))" || exit 1
F90="${FC}"
F77="${FC}"
;;