Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable LTO on the arm builder, as it is believed to be too heavy for this particular...
[simgrid.git] / tools / jenkins / build.sh
index 8abe068..5e94d83 100755 (executable)
@@ -146,11 +146,16 @@ mkdir "$WORKSPACE"/build
 cd "$WORKSPACE"/build
 
 have_NS3="no"
-if [ "$os" = "Debian" ] || [ "$os" = "Ubuntu" ] ; then
+if [ "$os" = "Debian" ] ; then
   if dpkg --compare-versions "$(dpkg-query -f '${Version}' -W libns3-dev)" ge 3.28; then
     have_NS3="yes"
   fi
 fi
+if [ "$os" = "Ubuntu" ] ; then
+  if dpkg --compare-versions "$(dpkg-query -f '${Version}' -W libns3-dev)" ge 3.36; then
+    have_NS3="yes"
+  fi
+fi
 if [ "$os" = "nixos" ] ; then
   have_NS3="yes"
 fi
@@ -204,10 +209,11 @@ if [ "$os" = "CentOS" ]; then
     else
         MAY_DISABLE_LTO=
     fi
-    if [ "$(rpm -q eigen3-devel --qf '%{VERSION}')" = "3.3.4" ]; then
-        echo "Temporary avoid build error seen with eigen3 version 3.3.4"
-        export CXXFLAGS=-Wno-error=int-in-bool-context
-    fi
+fi
+
+if [ $NODE_NAME = "armv8" ]; then
+    echo "disable LTO, believed to be too heavy for this particular system"
+    MAY_DISABLE_LTO=-Denable_lto=OFF
 fi
 
 cmake -G"$GENERATOR" ${INSTALL:+-DCMAKE_INSTALL_PREFIX=$INSTALL} \