]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
New overwrite in SALOME-master to build FD30 with debug warnings flags (LIBBATCH...
authorQuentin Cozette <quentin.cozette@cea.fr>
Mon, 8 Feb 2021 17:36:49 +0000 (18:36 +0100)
committerQuentin Cozette <quentin.cozette@cea.fr>
Mon, 8 Feb 2021 17:36:49 +0000 (18:36 +0100)
applications/SALOME-master.pyconf
products/patches/CONFIGURATION-SALOME-DEBUG-WARNINGS.patch [new file with mode: 0644]

index 783e90bee927014c008ea43661c05eb5374318a6..b57f0f9a8a6bfc1f277641b2bfcc8cc0efc3ec1f 100644 (file)
@@ -201,6 +201,13 @@ __overwrite__ :
     'PRODUCTS.qt.version_5_9_1.patches' : ['qt-5.9.1-UB20-FD32-socketcanbackend.patch']
   }
 
+  {
+    # Build Fedora 30 with less permissive compilation flags (see spns #18962)
+    __condition__ : "VARS.dist in ['FD30']"
+    'PRODUCTS.LIBBATCH.default.cmake_options' : "-DLIBBATCH_DEBUG_WARNINGS=ON -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig"
+    'PRODUCTS.CONFIGURATION.default.patches' : ['CONFIGURATION-SALOME-DEBUG-WARNINGS.patch']
+  }
+
   {
     __condition__ : "VARS.dist in ['FD32']"
     'APPLICATION.products.scipy' : '1.5.2' # gcc https://github.com/scipy/scipy/issues/11611 - either patch numpy to include -fallow-argument-mismatch or move to that version
diff --git a/products/patches/CONFIGURATION-SALOME-DEBUG-WARNINGS.patch b/products/patches/CONFIGURATION-SALOME-DEBUG-WARNINGS.patch
new file mode 100644 (file)
index 0000000..e9affd7
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/cmake/SalomeSetupPlatform.cmake b/cmake/SalomeSetupPlatform.cmake
+index 87cfdf1..b56af6f 100644
+--- a/cmake/SalomeSetupPlatform.cmake
++++ b/cmake/SalomeSetupPlatform.cmake
+@@ -130,7 +130,7 @@ SET(CMAKE_CXX_STANDARD_REQUIRED ON)
+ # Fight warnings
+ IF(NOT APPLE)
+-  OPTION(SALOME_DEBUG_WARNINGS "Report more warnings" OFF)
++  OPTION(SALOME_DEBUG_WARNINGS "Report more warnings" ON)
+   OPTION(SALOME_TREAT_WARNINGS_AS_ERRORS "Treat warnings as errors" OFF)
+   # Report more warnings
+   MARK_AS_ADVANCED(SALOME_DEBUG_WARNINGS SALOME_TREAT_WARNINGS_AS_ERRORS)