Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
keep cmake informed that this example was removed
[simgrid.git] / tools / gras / stub_generator.c
index c8cda70a589a2a679cdc749f49c6eb7626da5f24..3639b0bc41ac2a9d101854a2855bc14803b15fb6 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "gras_stub_generator.h"
 #include <stdarg.h>
+extern char *xbt_binary_name;
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(stubgen, gras, "Stub generator");
 
@@ -94,6 +95,8 @@ int main(int argc, char *argv[])
   char *deployment_file = NULL;
   int i;
 
+  xbt_binary_name=xbt_strdup(argv[0]);
+
   surf_init(&argc, argv);
   process_function_set = xbt_dict_new_homogeneous(NULL);
   process_list = xbt_dynar_new(sizeof(s_process_t), s_process_free);