X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45c3f1cfee86fb48c96d53f8267f99b6db6e3d7a..6a1a64f72c3f699c137b1352b0a93f4b5a1c8fd6:/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}"