File: 0001-Build-tbbmalloc-also-on-mips.patch

package info (click to toggle)
onetbb 2021.8.0-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 13,360 kB
  • sloc: cpp: 118,359; ansic: 8,761; python: 985; xml: 183; objc: 176; makefile: 54; sh: 43; javascript: 37
file content (43 lines) | stat: -rw-r--r-- 1,630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 96efebb5ac83d7ddefa60786e8a21510446863ef Mon Sep 17 00:00:00 2001
From: Adrian Bunk <bunk@debian.org>
Date: Wed, 15 Jun 2022 11:16:35 +0300
Subject: Build tbbmalloc also on mips

Signed-off-by: Adrian Bunk <bunk@debian.org>
---
 CMakeLists.txt | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

Index: tbb/CMakeLists.txt
===================================================================
--- tbb.orig/CMakeLists.txt
+++ tbb/CMakeLists.txt
@@ -216,19 +216,17 @@ else()
     if (TBB_BUILD)
         add_subdirectory(src/tbb)
     endif()
-    if (NOT "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "mips")
-        if (TBBMALLOC_BUILD)
-            add_subdirectory(src/tbbmalloc)
-            if(TBBMALLOC_PROXY_BUILD AND NOT "${MSVC_CXX_ARCHITECTURE_ID}" MATCHES "ARM64")
-                add_subdirectory(src/tbbmalloc_proxy)
-            endif()
-        endif()
-        if (APPLE OR NOT BUILD_SHARED_LIBS)
-            message(STATUS "TBBBind build targets are disabled due to unsupported environment")
-        else()
-            add_subdirectory(src/tbbbind)
+    if (TBBMALLOC_BUILD)
+        add_subdirectory(src/tbbmalloc)
+        if(TBBMALLOC_PROXY_BUILD AND NOT "${MSVC_CXX_ARCHITECTURE_ID}" MATCHES "ARM64")
+            add_subdirectory(src/tbbmalloc_proxy)
         endif()
     endif()
+    if (APPLE OR NOT BUILD_SHARED_LIBS)
+        message(STATUS "TBBBind build targets are disabled due to unsupported environment")
+    else()
+        add_subdirectory(src/tbbbind)
+    endif()
 
     # -------------------------------------------------------------------
     # Installation instructions