diff --git a/tools/toolchain/scripts/stage0/install_intel.sh b/tools/toolchain/scripts/stage0/install_intel.sh index fe7eac9c76..042963dbd2 100755 --- a/tools/toolchain/scripts/stage0/install_intel.sh +++ b/tools/toolchain/scripts/stage0/install_intel.sh @@ -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}" ;;