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:
Jonathan Peyton 2015-12-14 17:39:30 +00:00
parent 161eae2daa
commit 67390c6cd3
1 changed files with 2 additions and 1 deletions

View File

@ -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