From 7219e234cb0a95ed2c169ec264cee63c2848f2f9 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 11 Jan 2024 23:52:08 +0000 Subject: support building for arm64ec ARM64EC is a custom ABI designed to allow ARM64 code to directly call into x64 code and vice-versa. In order to facilitate this, __x86_64__ (in llvm) and _M_X64 (in msvc) are both defined, but most x64 intrinsics aren't supported, so don't attempt to use them. --- xbyak/xbyak_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h index afe536a..e90af65 100644 --- a/xbyak/xbyak_util.h +++ b/xbyak/xbyak_util.h @@ -27,7 +27,7 @@ #include "xbyak.h" #endif // XBYAK_ONLY_CLASS_CPU -#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64) +#if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__)) || defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) #define XBYAK_INTEL_CPU_SPECIFIC #endif -- cgit v1.2.3