]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #34822: ParaView TBB VTK SMP based approach somehow breaks compilation of GUI
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 11 May 2023 14:41:45 +0000 (16:41 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 11 May 2023 14:41:45 +0000 (16:41 +0200)
products/patches/tbb-2019_U8_windows10_GUI.patch [new file with mode: 0644]
products/tbb.pyconf

diff --git a/products/patches/tbb-2019_U8_windows10_GUI.patch b/products/patches/tbb-2019_U8_windows10_GUI.patch
new file mode 100644 (file)
index 0000000..e481a3a
--- /dev/null
@@ -0,0 +1,14 @@
+diff -Naur tbb-2019_U8_ref/include/tbb/internal/_tbb_windef.h tbb-2019_U8_dev/include/tbb/internal/_tbb_windef.h
+--- tbb-2019_U8_ref/include/tbb/internal/_tbb_windef.h 2019-06-06 12:29:15.000000000 +0200
++++ tbb-2019_U8_dev/include/tbb/internal/_tbb_windef.h 2023-05-11 16:36:53.677510682 +0200
+@@ -20,6 +20,10 @@
+ // Check that the target Windows version has all API calls required for TBB.
+ // Do not increase the version in condition beyond 0x0500 without prior discussion!
++#if defined(_WIN32_WINNT) 
++#undef _WIN32_WINNT  
++#define _WIN32_WINNT 0x0501
++#endif
+ #if defined(_WIN32_WINNT) && _WIN32_WINNT<0x0501
+ #error TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0501 or greater.
+ #endif
index c78cd93b7c0ac2f6b586ce0809574d02fd03f03b..acd10491fc84d49dc2ffdb7c1d67f36726b8b305 100644 (file)
@@ -38,7 +38,7 @@ version_2019_U8 :
 version_2019_U8_win :
 {
     archive_info : {archive_name : "tbb-2019_U8.tar.gz"}
-    patches : ['tbb-2019_U8_windows10.patch']
+    patches : ['tbb-2019_U8_windows10.patch', 'tbb-2019_U8_windows10_GUI.patch']
     depend : ['Python']
     build_depend : ['swig']
     properties :
@@ -51,7 +51,7 @@ version_2019_U8_win :
 version_2019_U8_win_dbg :
 {
     archive_info : {archive_name : "tbb-2019_U8.tar.gz"}
-    patches : ['tbb-2019_U8_windows10.patch', 'tbb-2019_U8_windows10_debug.patch']
+    patches : ['tbb-2019_U8_windows10.patch', 'tbb-2019_U8_windows10_GUI.patch', 'tbb-2019_U8_windows10_debug.patch']
     depend : ['Python']
     opt_depend : ['ispc']
     build_depend : ['swig']