(Libretro/macOS) Add ARM64 rules

This commit is contained in:
twinaphex 2021-03-27 21:57:27 +01:00 committed by Stephen Anthony
parent a4a579e2cf
commit cfcbb5a3ff
1 changed files with 12 additions and 0 deletions

View File

@ -102,6 +102,18 @@ else ifeq ($(platform), osx)
endif
fpic += $(MINVERSION)
ifeq ($(CROSS_COMPILE),1)
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
CFLAGS += $(TARGET_RULE)
CPPFLAGS += $(TARGET_RULE)
CXXFLAGS += $(TARGET_RULE)
LDFLAGS += $(TARGET_RULE)
endif
CFLAGS += $(ARCHFLAGS)
CXXFLAGS += $(ARCHFLAGS)
LDFLAGS += $(ARCHFLAGS)
# iOS
else ifneq (,$(findstring ios,$(platform)))
CXXFLAGS += $(LTO) -stdlib=libc++