forked from OSchip/llvm-project
Fix broken visual studio builds by disabling KMP_USE_TSX.
Visual studio can't handle the asm extension in the KMP_USE_TSX code sections. llvm-svn: 255514
This commit is contained in:
parent
161eae2daa
commit
67390c6cd3
|
@ -695,7 +695,8 @@ typedef void (*microtask_t)( int *gtid, int *npr, ... );
|
|||
|
||||
// Enable TSX if dynamic user lock is turned on
|
||||
#if KMP_USE_DYNAMIC_LOCK
|
||||
# define KMP_USE_TSX (KMP_ARCH_X86 || KMP_ARCH_X86_64)
|
||||
// Visual studio can't handle the asm sections in this code
|
||||
# define KMP_USE_TSX (KMP_ARCH_X86 || KMP_ARCH_X86_64) && !KMP_COMPILER_MSVC
|
||||
# ifdef KMP_USE_ADAPTIVE_LOCKS
|
||||
# undef KMP_USE_ADAPTIVE_LOCKS
|
||||
# endif
|
||||
|
|
Loading…
Reference in New Issue