Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Libunwind is useless for non-MC builds.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 30 Apr 2021 08:08:28 +0000 (10:08 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 30 Apr 2021 09:05:38 +0000 (11:05 +0200)
Moreover its presence causes unwanted false-positives with Asan.

CMakeLists.txt
tools/address_sanitizer.supp

index 87a0e1e..935710a 100644 (file)
@@ -396,23 +396,13 @@ else()
   SET(SIMGRID_HAVE_MALLOCATOR 0)
 endif()
 
-if (minimal-bindings)
-  message(STATUS "Don't look for libunwind as we build minimal binding libraries.")
-  if(enable_model-checking)
-    message(FATAL_ERROR "You cannot enable model-checking and minimal-bindings at the same time.")
-  endif()
-else()
+if(enable_model-checking)
   include(FindLibunwind)
   if(HAVE_LIBUNWIND)
     SET(SIMGRID_DEP "${SIMGRID_DEP} ${LIBUNWIND_LIBRARIES}")
   else()
-    if(enable_model-checking)
-      message(FATAL_ERROR "Please install libunwind-dev libdw-dev libelf-dev libevent-dev if you want to compile the SimGrid model checker.")
-    endif()
+    message(FATAL_ERROR "Please install libunwind-dev libdw-dev libelf-dev libevent-dev if you want to compile the SimGrid model checker.")
   endif()
-endif()
-
-if(enable_model-checking)
   find_package(Libdw REQUIRED)
   find_package(Libelf REQUIRED)
   find_package(Libevent REQUIRED)
index 4431358..19d706c 100644 (file)
@@ -1,8 +1,5 @@
 # Address sanitizer suppressions for stuff that we cannot control
 
-# ignore libunwind cruft (seen with clang)
-interceptor_via_lib:libunwind.so
-
 # __gnu_cxx::__to_xstring
 #interceptor_via_fun:__to_xstring