[Openmp-commits] [openmp] In openmp, recognize the NetBSD/powerpc ports. (PR #124151)

via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 23 09:17:39 PST 2025


https://github.com/he32 created https://github.com/llvm/llvm-project/pull/124151

None

>From 51478e235cb6e6b240c14e9c1f7902006df55ee8 Mon Sep 17 00:00:00 2001
From: Havard Eidnes <he at NetBSD.org>
Date: Thu, 23 Jan 2025 17:14:20 +0000
Subject: [PATCH] In openmp, recognize the NetBSD/powerpc ports.

---
 openmp/runtime/src/kmp_platform.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/openmp/runtime/src/kmp_platform.h b/openmp/runtime/src/kmp_platform.h
index 9c2215140467df..8801c4b13d5430 100644
--- a/openmp/runtime/src/kmp_platform.h
+++ b/openmp/runtime/src/kmp_platform.h
@@ -164,6 +164,9 @@
 #define KMP_ARCH_PPC_XCOFF 1
 #undef KMP_ARCH_PPC
 #define KMP_ARCH_PPC 1
+#elif defined(__powerpc__) && defined(KMP_OS_NETBSD)
+#undef KMP_ARCH_PPC
+#define KMP_ARCH_PPC 1
 #elif defined __ARM64_ARCH_8_32__
 #undef KMP_ARCH_AARCH64_32
 #define KMP_ARCH_AARCH64_32 1



More information about the Openmp-commits mailing list