File: gcc-atomic-always.patch

package info (click to toggle)
tbb 2020.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,844 kB
  • sloc: cpp: 142,989; ansic: 11,007; makefile: 1,367; python: 860; asm: 517; sh: 406; javascript: 215; lisp: 198; objc: 176; pascal: 65
file content (15 lines) | stat: -rw-r--r-- 516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Always define TBB_USE_GCC_BUILTINS on GCC.
Author: Adam Conrad <adconrad@ubuntu.com>

--- a/include/tbb/tbb_machine.h
+++ b/include/tbb/tbb_machine.h
@@ -225,6 +225,9 @@
 
 #elif __linux__ || __FreeBSD__ || __NetBSD__ || __OpenBSD__
 
+    #ifndef TBB_USE_GCC_BUILTINS
+        #define TBB_USE_GCC_BUILTINS 1
+    #endif
     #if (TBB_USE_GCC_BUILTINS && __TBB_GCC_BUILTIN_ATOMICS_PRESENT)
         #include "machine/gcc_generic.h"
     #elif (TBB_USE_ICC_BUILTINS && __TBB_ICC_BUILTIN_ATOMICS_PRESENT)