forked from OSchip/llvm-project
[OpenMP] support build on msys2/mingw with clang or gcc
RTM Adaptive Locks are supported on msys2/mingw for clang and gcc. Differential Revision: https://reviews.llvm.org/D81776
This commit is contained in:
parent
bb33f925a6
commit
bf2aa74e51
|
@ -1706,7 +1706,8 @@ static void __kmp_set_queuing_lock_flags(kmp_queuing_lock_t *lck,
|
||||||
|
|
||||||
#if (KMP_COMPILER_ICC && __INTEL_COMPILER >= 1300) || \
|
#if (KMP_COMPILER_ICC && __INTEL_COMPILER >= 1300) || \
|
||||||
(KMP_COMPILER_MSVC && _MSC_VER >= 1700) || \
|
(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>
|
#include <immintrin.h>
|
||||||
#define SOFT_ABORT_MASK (_XABORT_RETRY | _XABORT_CONFLICT | _XABORT_EXPLICIT)
|
#define SOFT_ABORT_MASK (_XABORT_RETRY | _XABORT_CONFLICT | _XABORT_EXPLICIT)
|
||||||
|
|
Loading…
Reference in New Issue