]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
windows: tbb debug mode patch forgotten
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 10 Dec 2021 14:38:51 +0000 (15:38 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 10 Dec 2021 14:38:57 +0000 (15:38 +0100)
applications/SALOME-master-windows.pyconf
products/patches/tbb-2019_U8_windows10_debug.patch [new file with mode: 0644]

index bc20b49b12ecac3354d982b27a971087e11c0766..b4c0d7b3cfa0bdfdc613adeb4605a2f05458e652 100644 (file)
@@ -198,5 +198,6 @@ __overwrite__ :
     'APPLICATION.products.sphinxintl' : '2.0.0-win-dbg'
     'PRODUCTS.llvm.version_8_0_1_clang_win.build_source' : 'script'
     'PRODUCTS.llvm.version_8_0_1_clang_win.compil_script' : 'llvm-8.0.1.bat'
+    'PRODUCTS.tbb.version_2019_U8_win.patches' : ['tbb-2019_U8_windows10.patch', 'tbb-2019_U8_windows10_debug.patch']
   }
 ]
diff --git a/products/patches/tbb-2019_U8_windows10_debug.patch b/products/patches/tbb-2019_U8_windows10_debug.patch
new file mode 100644 (file)
index 0000000..7b7c041
--- /dev/null
@@ -0,0 +1,15 @@
+diff -Naur tbb-2019_U8_ref/python/setup.py tbb-2019_U8_new/python/setup.py
+--- tbb-2019_U8_ref/python/setup.py    2019-06-06 12:29:15.000000000 +0200
++++ tbb-2019_U8_new/python/setup.py    2021-12-10 15:25:52.144064203 +0100
+@@ -53,9 +53,9 @@
+         os.environ['DISTUTILS_USE_SDK'] = '1'  # Enable environment settings in distutils
+         os.environ['MSSdk'] = '1'
+         print("Using compiler settings from environment")
+-    tbb_flag = ['/Qtbb'] if use_compiler_tbb else []
++    tbb_flag = ['/Qtbb'] if use_compiler_tbb else ['-D_DEBUG']
+     tbb_flag += ['/EHsc'] # for Python 2
+-    compile_flags = ['/Qstd=c++11'] if intel_compiler else []
++    compile_flags = ['/Qstd=c++11'] if intel_compiler else ['-D_DEBUG']
+ else:
+     tbb_flag = ['-tbb'] if use_compiler_tbb else []
+     compile_flags = ['-std=c++11', '-Wno-unused-variable']