diff options
-rw-r--r-- | openmp/runtime/src/kmp_os.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h index b12d198568a..2c330fc0d4d 100644 --- a/openmp/runtime/src/kmp_os.h +++ b/openmp/runtime/src/kmp_os.h @@ -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 |