HomePhabricator

Add OpenBSD support to OpenMP

Description

Add OpenBSD support to OpenMP

Summary: This patch permits OpenMP to build and work (with both gcc and clang) on OpenBSD. It mostly follows what was done for FreeBSD and NetBSD, except OpenBSD does not have pthread_getattr_np support, so it follows OS X in that one instance.

Reviewers: #openmp, krytarowski

Reviewed By: krytarowski

Subscribers: guansong, jfb, emaste, mgorny, krytarowski, #openmp

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D34280

Details

Committed
kamilDec 9 2018, 8:46 AM
Reviewer
krytarowski
Differential Revision
D34280: Add OpenBSD support to OpenMP
Parents
rL348725: Add DragonFlyBSD support to OpenMP
Branches
Unknown
Tags
Unknown

Event Timeline

I wonder if it would be cleaner to define a KMP_OS_POSIX and a KMP_OS_BSD and avoid a load of 'if Linux, FreeBSD, NetBSD, DragonFlyBSD, HURD' checks. This would make it easier for the next person to support a UNIX-like or BSD-derived OS.