mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-07 17:52:10 +01:00
40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
From ce92be0ee30be1bd861c325257a9c55cc2c21dfd Mon Sep 17 00:00:00 2001
|
|
From: Leon Marz <main@lmarz.org>
|
|
Date: Fri, 17 Nov 2023 19:19:37 +0100
|
|
Subject: [PATCH] enable resumable
|
|
|
|
---
|
|
cmake/compilers/GNU.cmake | 2 +-
|
|
include/oneapi/tbb/detail/_config.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake
|
|
index 08c7f2e..507e912 100644
|
|
--- a/cmake/compilers/GNU.cmake
|
|
+++ b/cmake/compilers/GNU.cmake
|
|
@@ -40,7 +40,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)")
|
|
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$<AND:$<NOT:$<CXX_COMPILER_ID:Intel>>,$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},11.0>>>:-mwaitpkg>)
|
|
endif()
|
|
|
|
-set(TBB_COMMON_LINK_LIBS ${CMAKE_DL_LIBS})
|
|
+set(TBB_COMMON_LINK_LIBS ${CMAKE_DL_LIBS} ucontext)
|
|
|
|
# Ignore -Werror set through add_compile_options() or added to CMAKE_CXX_FLAGS if TBB_STRICT is disabled.
|
|
if (NOT TBB_STRICT AND COMMAND tbb_remove_compile_flag)
|
|
diff --git a/include/oneapi/tbb/detail/_config.h b/include/oneapi/tbb/detail/_config.h
|
|
index d6705e1..78c96ad 100644
|
|
--- a/include/oneapi/tbb/detail/_config.h
|
|
+++ b/include/oneapi/tbb/detail/_config.h
|
|
@@ -274,7 +274,7 @@
|
|
#define __TBB_CPP20_COMPARISONS_PRESENT 0
|
|
#endif
|
|
|
|
-#define __TBB_RESUMABLE_TASKS (!__TBB_WIN8UI_SUPPORT && !__ANDROID__ && !__QNXNTO__ && (!__linux__ || __GLIBC__))
|
|
+#define __TBB_RESUMABLE_TASKS (!__TBB_WIN8UI_SUPPORT && !__ANDROID__ && !__QNXNTO__ && (__linux__))
|
|
|
|
/* This macro marks incomplete code or comments describing ideas which are considered for the future.
|
|
* See also for plain comment with TODO and FIXME marks for small improvement opportunities.
|
|
--
|
|
2.42.1
|
|
|