A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
constify MPI_File*
[simgrid.git]
/
src
/
smpi
/
smpi_main.c
diff --git
a/src/smpi/smpi_main.c
b/src/smpi/smpi_main.c
index c4d7abaa7820b2d04b8d248e354bf5db176e16c2..55b2e16a2b6ae218a9226cea9ca6621f5c563853 100644
(file)
--- a/
src/smpi/smpi_main.c
+++ b/
src/smpi/smpi_main.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-201
9
. The SimGrid Team. All rights reserved. */
/* 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. */
/* 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. */
@@
-10,8
+10,14
@@
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
+ if (getenv("SMPI_PRETEND_CC") != NULL) {
+ /* Hack to ensure that smpicc can pretend to be a simple compiler. Particularly handy to pass it to the
+ * configuration tools. This one is used with dlopen privatization. */
+ return 0;
+ }
+
if (argc < 2) {
if (argc < 2) {
- fprintf(stderr, "Usage: smpi
_
main <program to launch>\n");
+ fprintf(stderr, "Usage: smpimain <program to launch>\n");
exit(1);
}
return smpi_main(argv[1], argc - 1, argv + 1);
exit(1);
}
return smpi_main(argv[1], argc - 1, argv + 1);