Add MSVC defines for ARM and ARM64

NVTT contains a mechanism for recognizing architecture from compiler predefines. Added MSVC ARM and ARM64 predefines to this mechanism, which allows bimg to build for UWP on those architectures.
This commit is contained in:
Justin Murray
2019-08-08 11:49:30 -07:00
committed by GitHub
parent dab021bc46
commit c697d0bad5

View File

@@ -490,12 +490,12 @@ LLVM:
# define POSH_CPU_SPARC 1
#endif
#if defined ARM || defined __arm__ || defined _ARM
#if defined ARM || defined __arm__ || defined _ARM || defined _M_ARM
# define POSH_CPU_STRONGARM 1
# define POSH_CPU_STRING "ARM"
#endif
#if defined __aarch64__
#if defined __aarch64__ || defined _M_ARM64
# define POSH_CPU_AARCH64 1
# define POSH_CPU_STRING "ARM64"
#endif