From c867696e9c46bdab78c078d0d77597e1a4d435f5 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 20 Jun 2012 22:28:26 +0200 Subject: [PATCH] meaningful pebcak message: you need to compile MC in to use it --- src/surf/surf_config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/surf/surf_config.c b/src/surf/surf_config.c index 28f00ec597..d761b0447e 100644 --- a/src/surf/surf_config.c +++ b/src/surf/surf_config.c @@ -231,6 +231,9 @@ static void _surf_cfg_cb_model_check(const char *name, int pos) _surf_do_model_check = xbt_cfg_get_int(_surf_cfg_set, name); if (_surf_do_model_check) { +#ifndef HAVE_MC + xbt_die("You tried to activate the model-checking from the command line, but it was not compiled in. Change your settings in cmake, recompile and try again"); +#endif /* Tell modules using mallocators that they shouldn't. MC don't like them */ xbt_fifo_preinit(); xbt_dict_preinit(); -- 2.20.1