From 1e9803272bf869acfca65f318c46bfd83e995788 Mon Sep 17 00:00:00 2001 From: Pierre-Nicolas Clauss Date: Thu, 31 Mar 2011 15:49:21 +0200 Subject: [PATCH] Programs compiled with smpicc now silently and successfully exit when SMPI_PRETEND_CC is set. This should help use smpicc with autotools-based sources. --- src/smpi/smpi_global.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index 83647e1bf1..1b98966471 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -252,6 +252,10 @@ int MAIN__(void) xbt_cfgelm_double, &default_threshold, 1, 1, NULL, NULL); + if(getenv("SMPI_PRETEND_CC") != NULL) { + return 0; + } + #ifdef HAVE_TRACING TRACE_global_init(&xargc, xargv); #endif -- 2.20.1