Build tbbmalloc also on mips
authorAdrian Bunk <bunk@debian.org>
Wed, 15 Jun 2022 08:16:35 +0000 (11:16 +0300)
committerMo Zhou <lumin@debian.org>
Mon, 26 Dec 2022 16:21:23 +0000 (16:21 +0000)
Signed-off-by: Adrian Bunk <bunk@debian.org>
Gbp-Pq: Name 0001-Build-tbbmalloc-also-on-mips.patch

CMakeLists.txt

index 9b8bb7c8be6a33c3d796448da7c36b6e79bb82cb..2a421f16ac7427537961a77eb8bf25d0bee8d24f 100644 (file)
@@ -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