Sfoglia il codice sorgente

Use simgrid's smpicc instead of mpicc when building in simgrid mode

Samuel Thibault 10 anni fa
parent
commit
0b355d84db
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      configure.ac

+ 6 - 1
configure.ac

@@ -1759,8 +1759,13 @@ AC_ARG_WITH(mpicc, [AS_HELP_STRING([--with-mpicc[=<path to mpicc>]],
 		fi
 	],
 	[
+		if test x$enable_simgrid = xyes ; then
+			DEFAULT_MPICC=smpicc
+		else
+			DEFAULT_MPICC=mpicc
+		fi
 		# nothing was specified: default value is used
-		AC_PATH_PROG(mpicc_path, mpicc, [no], [])
+		AC_PATH_PROG(mpicc_path, $DEFAULT_MPICC, [no], [])
 	])
 
 # We test if the MPICC compiler exists