mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
* gnu/packages/oneapi.scm (onetbb): New variable. * gnu/packages/patches/onetbb-other-arches.patch: New file. * gnu/local.mk (dist_patch_DATA): Register them. * gnu/local.mk (GNU_SYSTEM_MODULES): Add new module. Change-Id: Id00fffb79ebc74ca1d65ba79ff2f28af1e07ef9a Signed-off-by: Ludovic Courtès <ludo@gnu.org>
28 lines
885 B
Diff
28 lines
885 B
Diff
Declare a fallback architecture not yet considered by upstream project.
|
|
|
|
diff --git a/src/tbb/tools_api/ittnotify_config.h b/src/tbb/tools_api/ittnotify_config.h
|
|
index 001d42e0..2e68f738 100644
|
|
--- a/src/tbb/tools_api/ittnotify_config.h
|
|
+++ b/src/tbb/tools_api/ittnotify_config.h
|
|
@@ -180,6 +180,11 @@
|
|
# define ITT_ARCH_ARM64 6
|
|
#endif /* ITT_ARCH_ARM64 */
|
|
|
|
+/* Fallback for other architectures */
|
|
+#ifndef ITT_ARCH_GENERIC
|
|
+# define ITT_ARCH_GENERIC 99
|
|
+#endif /* ITT_ARCH_GENERIC */
|
|
+
|
|
#ifndef ITT_ARCH_LOONGARCH64
|
|
# define ITT_ARCH_LOONGARCH64 7
|
|
#endif /* ITT_ARCH_LOONGARCH64 */
|
|
@@ -209,6 +214,8 @@
|
|
# define ITT_ARCH ITT_ARCH_ARM64
|
|
# elif defined __powerpc64__
|
|
# define ITT_ARCH ITT_ARCH_PPC64
|
|
+# elif
|
|
+# define ITT_ARCH ITT_ARCH_GENERIC
|
|
# elif defined __loongarch__
|
|
# define ITT_ARCH ITT_ARCH_LOONGARCH64
|
|
# elif defined __s390__ || defined __s390x__
|