bscpkgs/bsc/intel-mpi/mpicxx.patch

29 lines
1.6 KiB
Diff
Raw Normal View History

2020-08-18 00:51:51 +08:00
--- a/opt/intel/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicxx 2020-06-30 14:26:14.619723932 +0200
+++ b/opt/intel/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicxx 2020-06-30 14:27:56.644687134 +0200
@@ -49,9 +49,9 @@
if [ x"$opt_args" == x"" ]; then
case "${compiler_short_name}" in
- icc|icpc) $dir/mpiicpc -cxx=$compiler_name "$@" ;;
- *g++*) $dir/mpigxx -cxx=$compiler_name "$@" ;;
- mpicxx) $dir/mpigxx "$@" ;;
+ icc|icpc) $dir/mpiicpc -cxx=$compiler_name "$@" ;;
+ *g++*|clang*++|mcxx|echo) $dir/mpigxx -cxx=$compiler_name "$@" ;;
+ mpicxx) $dir/mpigxx "$@" ;;
*)
echo "Error: unsupported compiler name '$compiler_name'."
echo "Check -cxx=<compiler_name> command line option and I_MPI_CXX='$I_MPI_CXX' and MPICH_CXX='$MPICH_CXX' variables.";
@@ -59,9 +59,9 @@
esac
else
case "${compiler_short_name}" in
- icc|icpc) $dir/mpiicpc -cxx=$compiler_name "$@" $opt_args ;;
- *g++*) $dir/mpigxx -cxx=$compiler_name "$@" $opt_args ;;
- mpicxx) $dir/mpigxx "$@" $opt_args ;;
+ icc|icpc) $dir/mpiicpc -cxx=$compiler_name "$@" $opt_args ;;
+ *g++*|clang*++|mcxx|echo) $dir/mpigxx -cxx=$compiler_name "$@" $opt_args ;;
+ mpicxx) $dir/mpigxx "$@" $opt_args ;;
*)
echo "Error: unsupported compiler name '$compiler_name'."
echo "Check -cxx=<compiler_name> command line option and I_MPI_CXX='$I_MPI_CXX' and MPICH_CXX='$MPICH_CXX' variables.";