Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix MC build
authorAugustin Degomme <adegomme@gmail.com>
Wed, 4 Dec 2019 18:04:51 +0000 (19:04 +0100)
committerAugustin Degomme <adegomme@gmail.com>
Wed, 4 Dec 2019 18:07:05 +0000 (19:07 +0100)
src/mc/Session.cpp
src/smpi/internals/smpi_config.cpp
src/smpi/internals/smpi_global.cpp

index a5721e3..e0f28cf 100644 (file)
@@ -52,7 +52,7 @@ static void setup_child_environment(int socket)
 Session::Session(const std::function<void()>& code)
 {
 #if HAVE_SMPI
-  xbt_assert(smpi_privatize_global_variables != SmpiPrivStrategies::MMAP,
+  xbt_assert(smpi_cfg_privatization() != SmpiPrivStrategies::MMAP,
              "Please use the dlopen privatization schema when model-checking SMPI code");
 #endif
 
index 68f3b67..61cb842 100644 (file)
@@ -11,6 +11,9 @@
 #include <boost/algorithm/string.hpp> /* trim */
 #include <boost/tokenizer.hpp>
 
+#if SIMGRID_HAVE_MC
+#include "src/mc/mc_config.hpp"
+#endif
 
 #if defined(__APPLE__)
 # include <AvailabilityMacros.h>
index 9955d92..fb03f4a 100644 (file)
 #include <fstream>
 #include <sys/stat.h>
 
-#if SIMGRID_HAVE_MC
-#include "src/mc/mc_config.hpp"
-#endif
-
 #if SG_HAVE_SENDFILE
 #include <sys/sendfile.h>
 #endif