[Openmp-commits] [PATCH] D60917: Enable OpenMP build for 32-bit FreeBSD
Dimitry Andric via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Apr 19 13:34:06 PDT 2019
dim created this revision.
dim added reviewers: emaste, jlpeyton, Hahnfeld.
Herald added subscribers: openmp-commits, jdoerfert, guansong, krytarowski.
Herald added a project: OpenMP.
To be able to successfully build OpenMP on 32-bit FreeBSD, such as
FreeBSD/i386, I first had to provide a few wrappers (see D60916 <https://reviews.llvm.org/D60916>), and
then add `KMP_OS_FREEBSD` to the list of defines checked for 32-bit
architectures in `kmp_runtime.cpp`.
I have successfully built libomp.so and ran a bunch of test programs on
FreeBSD/i386 with this.
See also https://svnweb.freebsd.org/changeset/base/345283
Repository:
rOMP OpenMP
https://reviews.llvm.org/D60917
Files:
runtime/src/kmp_runtime.cpp
Index: runtime/src/kmp_runtime.cpp
===================================================================
--- runtime/src/kmp_runtime.cpp
+++ runtime/src/kmp_runtime.cpp
@@ -8239,7 +8239,7 @@
#elif KMP_ARCH_X86 || KMP_ARCH_ARM || KMP_ARCH_AARCH || KMP_ARCH_MIPS
-#if KMP_OS_LINUX || KMP_OS_WINDOWS || KMP_OS_HURD
+#if KMP_OS_LINUX || KMP_OS_FREEBSD || KMP_OS_WINDOWS || KMP_OS_HURD
// basic tuning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60917.195903.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190419/5417102f/attachment.bin>
More information about the Openmp-commits
mailing list