split GEODE_PLATFORM_NAME for MacArm and MacIntel

This commit is contained in:
Cvolton 2024-06-13 14:02:08 +02:00
parent 5c684388f2
commit 48a7981d3b
No known key found for this signature in database

View file

@ -53,16 +53,17 @@
#define GEODE_MACOS(...) __VA_ARGS__
#define GEODE_IS_MACOS
#define GEODE_IS_DESKTOP
#define GEODE_PLATFORM_NAME "MacOS"
#define GEODE_PLATFORM_EXTENSION ".dylib"
#define CC_TARGET_OS_MAC
#if TARGET_CPU_ARM64
#define GEODE_PLATFORM_NAME "MacArm"
#define GEODE_IS_ARM_MAC
#define GEODE_PLATFORM_SHORT_IDENTIFIER "mac-arm"
#define GEODE_ARM_MAC(...) __VA_ARGS__
#define GEODE_INTEL_MAC(...)
#else
#define GEODE_PLATFORM_NAME "MacIntel"
#define GEODE_IS_INTEL_MAC
#define GEODE_PLATFORM_SHORT_IDENTIFIER "mac-intel"
#define GEODE_ARM_MAC(...)