[Openmp-commits] [openmp] [OpenMP] Fix building for 32-bit DragonFly, NetBSD, OpenBSD (PR #70527)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 27 19:52:28 PDT 2023


https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/70527

>From 4cc232736f8e1abad1cea072b70ad814ade7d0ff Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Fri, 27 Oct 2023 17:29:51 -0400
Subject: [PATCH] [OpenMP] Fix building for 32-bit DragonFly, NetBSD, OpenBSD

Fixing #error "Unknown or unsupported OS"
---
 openmp/runtime/src/kmp_runtime.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 9bf5105d134e82e..e83c09383769a51 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -8925,7 +8925,8 @@ __kmp_determine_reduction_method(
 
 #elif KMP_ARCH_X86 || KMP_ARCH_ARM || KMP_ARCH_AARCH || KMP_ARCH_MIPS
 
-#if KMP_OS_LINUX || KMP_OS_FREEBSD || KMP_OS_WINDOWS || KMP_OS_HURD
+#if KMP_OS_LINUX || KMP_OS_DRAGONFLY || KMP_OS_FREEBSD || KMP_OS_NETBSD ||     \
+    KMP_OS_OPENBSD || KMP_OS_WINDOWS || KMP_OS_HURD
 
     // basic tuning
 



More information about the Openmp-commits mailing list