From: Arnaud Giersch Date: Sun, 5 Mar 2023 20:31:19 +0000 (+0100) Subject: Enable _GLIBCXX_DEBUG for one of the builds. X-Git-Tag: v3.34~370 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bde7cd336f0c403e990645b6eb1fab00191a5497 Enable _GLIBCXX_DEBUG for one of the builds. Also run the tests in this case. --- diff --git a/tools/jenkins/Flags.sh b/tools/jenkins/Flags.sh index ef34b956c0..1dfb5d44bd 100755 --- a/tools/jenkins/Flags.sh +++ b/tools/jenkins/Flags.sh @@ -66,6 +66,16 @@ else fi echo "Step ${STEP}/${NSTEPS} - Building with debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}" + +if [ "${builddebug}/${buildsmpi}/${buildmc}" = "ON/ON/ON"; then + # ${buildmc}=ON because "why not", and especially because it doesn't + # compile with -D_GLIBCXX_DEBUG and -Denable_ns3=ON together + export CXXFLAGS=-D_GLIBCXX_DEBUG + runtests="ON" +else + runtests="OFF" +fi + cmake -Denable_documentation=OFF \ -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \ -Denable_mallocators=ON -Denable_debug=${builddebug} \ @@ -76,5 +86,11 @@ cmake -Denable_documentation=OFF \ "$WORKSPACE" make -j$NUMPROC tests + +if [ "$runtests" = "ON" ]; then + # exclude tests known to fail with _GLIBCXX_DEBUG + ctest -j$NUMPROC -E '^[ps]thread-|mc-bugged1-liveness' +fi + cd .. rm -rf build