summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-10-28 23:39:29 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-11-28 11:43:35 +0100
commite85089afcaacf94087fb071b0f88f0e44b6e5b5e (patch)
treed8bad39344218f4b983c65b38efa1cf24f80bfa7 /storage
parentd2bbeeef6f52f2f16b2361e6097c484be2435e38 (diff)
downloadmariadb-git-e85089afcaacf94087fb071b0f88f0e44b6e5b5e.tar.gz
Windows : fix clang-cl build.
Disable lock elision, due to buggy intrin.h (_xbegin is misspelled) Fix warnings.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/include/transactional_lock_guard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/transactional_lock_guard.h b/storage/innobase/include/transactional_lock_guard.h
index 7ece27638fc..3167055630c 100644
--- a/storage/innobase/include/transactional_lock_guard.h
+++ b/storage/innobase/include/transactional_lock_guard.h
@@ -20,7 +20,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
#if defined __powerpc64__ && defined __clang__ && defined __linux__
#elif defined __powerpc64__&&defined __GNUC__&&defined __linux__&&__GNUC__ > 4
-#elif defined _MSC_VER && (defined _M_IX86 || defined _M_X64)
+#elif defined _MSC_VER && (defined _M_IX86 || defined _M_X64) && !defined(__clang__)
#elif defined __GNUC__ && (defined __i386__ || defined __x86_64__)
# if __GNUC__ >= 8
# elif defined __clang_major__ && __clang_major__ > 6