]> AND Public Git Repository - simgrid.git/blobdiff - tools/jenkins/Sanitizers.sh
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused state.
[simgrid.git] / tools / jenkins / Sanitizers.sh
index 2a7719f41b069f0b18317ea201d77253a4c19891..834a295e49b45e0455b7934bc1c1f6e58c9f42b0 100755 (executable)
@@ -18,11 +18,11 @@ fi
 
 if [ "${SANITIZER}" = "address" ]
 then
-    export ASAN_OPTIONS="suppressions=$WORKSPACE/tools/sanitizers.supp"
+    export ASAN_OPTIONS="suppressions=$WORKSPACE/tools/address_sanitizer.supp"
     SANITIZER_OPTIONS="-Denable_address_sanitizer=ON -Denable_undefined_sanitizer=OFF -Denable_thread_sanitizer=OFF"
 elif [ "${SANITIZER}" = "thread" ]
 then
-    export TSAN_OPTIONS="memory_limit_mb=1500"
+    export TSAN_OPTIONS="memory_limit_mb=1500 suppressions=$WORKSPACE/tools/thread_sanitizer.supp"
     SANITIZER_OPTIONS="-Denable_address_sanitizer=OFF -Denable_undefined_sanitizer=OFF -Denable_thread_sanitizer=ON"
 elif [ "${SANITIZER}" = "undefined" ]
 then
@@ -79,7 +79,7 @@ cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=OFF \
       -Denable_jedule=ON -Denable_mallocators=OFF \
       -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_model-checking=OFF \
       -Denable_memcheck=OFF -Denable_memcheck_xml=OFF -Denable_smpi_ISP_testsuite=ON -Denable_coverage=OFF\
-      -Denable_fortran=OFF -Denable_python=OFF ${SANITIZER_OPTIONS} $WORKSPACE
+      -Denable_fortran=OFF -Denable_python=OFF -DLTO_EXTRA_FLAG="auto" ${SANITIZER_OPTIONS} $WORKSPACE
 
 make -j$NUMPROC tests
 ctest --no-compress-output -D ExperimentalTest || true