From: Nabil Ghodbane Date: Tue, 18 Oct 2022 17:34:38 +0000 (+0200) Subject: TTK: on DB10, switch off CPU optimization as requested by A.Geay X-Git-Tag: V9_11_0~220 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0bff81f0a9b6a29bd62e56338cc4231dfb1c804e;p=tools%2Fsat_salome.git TTK: on DB10, switch off CPU optimization as requested by A.Geay --- diff --git a/products/compil_scripts/TTK.sh b/products/compil_scripts/TTK.sh index 649d1c1..d8b3b91 100755 --- a/products/compil_scripts/TTK.sh +++ b/products/compil_scripts/TTK.sh @@ -16,6 +16,19 @@ CMAKE_OPTIONS+=" -DTTK_BUILD_PARAVIEW_PLUGINS=ON" CMAKE_OPTIONS+=" -Dembree_DIR:PATH=${EMBREE_ROOT_DIR}/lib/cmake/embree-${EMBREE_VERSION}" # Embree CMake defines EMBREE_INCLUDE_DIRS but TTK uses EMBREE_INCUDE_DIR which is undefined. CMAKE_OPTIONS+=" -DEMBREE_INCLUDE_DIR=${EMBREE_ROOT_DIR}/include" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +case $LINUX_DISTRIBUTION in + DB10) + # A.Geay (Sous debian10 sur nos VM de prod, on a pas mal de nos tests qui plantent avec des SIGILL) + echo "WARNING: switching off cpu optimization!" + CMAKE_OPTIONS+=" -DTTK_ENABLE_CPU_OPTIMIZATION=OFF" + ;; + *) + ;; +esac + echo echo "*** cmake" $CMAKE_OPTIONS rm -rf $BUILD_DIR