X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b3677b425b9cc6949c1573d59ac772540cbf4b2..bdebd1432527a032fe2a9141bc1ced07cfc083dc:/src/smpi/smpicc.in diff --git a/src/smpi/smpicc.in b/src/smpi/smpicc.in index d18e0f1deb..6902a25e2f 100755 --- a/src/smpi/smpicc.in +++ b/src/smpi/smpicc.in @@ -6,6 +6,8 @@ # This program is free software; you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. +SIMGRID_VERSION="@SIMGRID_VERSION_STRING@" + CC=@CMAKE_C_COMPILER@ INCLUDEARGS="@includeflag@" @@ -40,10 +42,17 @@ while [ $# -gt 0 ]; do fi list_add CMDARGS "${SRCFILE}" ;; + '-version' | '--version') + printf '%b\n' "$SIMGRID_VERSION" + exit 0 + ;; + '-compiler-version' | '--compiler-version') + ${CC} --version + ;; *) list_add CMDARGS "${ARG}" - ;; - esac + ;; + esac done list_set CMDLINE "${CC}"