[Openmp-commits] [PATCH] D81776: [OpenMP] support build on msys2/mingw with clang or gcc
Adrian Pop via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 12 16:34:17 PDT 2020
adrpo created this revision.
adrpo added a reviewer: openmp-commits.
adrpo added a project: LLVM.
Herald added subscribers: sstefan1, mstorsjo, guansong, yaxunl.
Herald added a reviewer: jdoerfert.
Herald added a project: OpenMP.
RTM Adaptive Locks are supported on msys2/mingw for clang and gcc.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81776
Files:
openmp/runtime/src/kmp_lock.cpp
Index: openmp/runtime/src/kmp_lock.cpp
===================================================================
--- openmp/runtime/src/kmp_lock.cpp
+++ openmp/runtime/src/kmp_lock.cpp
@@ -1706,7 +1706,8 @@
#if (KMP_COMPILER_ICC && __INTEL_COMPILER >= 1300) || \
(KMP_COMPILER_MSVC && _MSC_VER >= 1700) || \
- (KMP_COMPILER_CLANG && KMP_MSVC_COMPAT)
+ (KMP_COMPILER_CLANG && (KMP_MSVC_COMPAT || __MINGW32__)) || \
+ (KMP_COMPILER_GCC && __MINGW32__)
#include <immintrin.h>
#define SOFT_ABORT_MASK (_XABORT_RETRY | _XABORT_CONFLICT | _XABORT_EXPLICIT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81776.270544.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200612/254409ee/attachment.bin>
More information about the Openmp-commits
mailing list