Add arm64 support for macOS

This commit is contained in:
Wojtek Figat
2023-02-21 18:15:22 +01:00
parent c00769e2b8
commit 64752781ed
12 changed files with 54 additions and 5 deletions

View File

@@ -7,10 +7,17 @@
#include "../Unix/UnixDefines.h"
// Platform description
#define PLATFORM_TYPE PlatformType::Mac
#if __aarch64__
#define PLATFORM_64BITS 1
#define PLATFORM_ARCH_ARM64 1
#define PLATFORM_ARCH ArchitectureType::ARM64
#else
sss;
#define PLATFORM_64BITS 1
#define PLATFORM_ARCH_X64 1
#define PLATFORM_ARCH ArchitectureType::x64
#define PLATFORM_TYPE PlatformType::Mac
#endif
#define PLATFORM_DESKTOP 1
#define PLATFORM_CACHE_LINE_SIZE 128
#define PLATFORM_HAS_HEADLESS_MODE 1