Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be verbose when the SMPI_PRETEND_CC trick is activated
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 30 Mar 2018 06:05:11 +0000 (08:05 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 30 Mar 2018 06:07:06 +0000 (08:07 +0200)
src/smpi/smpicc.in
src/smpi/smpicxx.in
src/smpi/smpif90.in
src/smpi/smpiff.in

index bdac600..fcafe88 100755 (executable)
@@ -25,12 +25,16 @@ elif [ "x@APPLE@" = "x1" ]; then
     list_add CFLAGS "-fpic"
     if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
        list_add LINKARGS "-shared"
+    else
+       echo "Warning: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
     fi
     list_add LINKARGS "-lsimgrid" "-Wl,-undefined,error"
 else
     list_add CFLAGS "-fpic"
     if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
        list_add LINKARGS "-shared"
+    else
+       echo "Warning: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
     fi
     list_add LINKARGS "-lsimgrid" "-Wl,-z,defs"
 fi
index 241757c..c5abb46 100755 (executable)
@@ -23,6 +23,8 @@ if [ "@WIN32@" != "1" ]; then
     list_add CXXFLAGS "-fpic" "-std=gnu++11"
     if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
        list_add LINKARGS "-shared"
+    else
+       echo "Warning: smpicxx pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
     fi
     list_add LINKARGS "-lsimgrid" "-std=gnu++11"
 else
index 2100adb..e64d68d 100644 (file)
@@ -16,9 +16,11 @@ CMAKE_LINKARGS="-L@libdir@"
 @SMPITOOLS_SH@
 
 list_set FFLAGS @SMPI_Fortran_FLAGS@
-    if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
-       list_add LINKARGS "-shared"
-    fi
+if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
+   list_add LINKARGS "-shared"
+else
+   echo "Warning: smpif90 pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
+fi
 list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm"
 list_set TMPFILES
 main_name=main
index 210645d..aaac339 100644 (file)
@@ -18,6 +18,8 @@ CMAKE_LINKARGS="-L@libdir@"
 list_set FFLAGS @SMPI_Fortran_FLAGS@
 if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
    list_add LINKARGS "-shared"
+else
+   echo "Warning: smpiff pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
 fi
 list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm"
 list_set TMPFILES