Skip to content

Commit

Permalink
Disable X86-64 detection macro for Arm64 emulation on MSVC (#3540)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbusato authored Jan 31, 2025
1 parent ca007c9 commit f2e769d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libcudacxx/include/cuda/std/__cccl/architecture.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#endif

// X86 64-bit
#if defined(_M_X64) || defined(__amd64__) || defined(__x86_64__)

// _M_X64 is defined even if we are compiling in Arm64 emulation mode
#if (defined(_M_X64) && !defined(_M_ARM64EC)) || defined(__amd64__) || defined(__x86_64__)
# define _CCCL_ARCH_X86_64_() 1
#else
# define _CCCL_ARCH_X86_64_() 0
Expand Down

0 comments on commit f2e769d

Please sign in to comment.