ios/tvos: properly set min supported version (#362)
Some checks failed
Crowdin Translation Integration / create_intl_file (push) Has been cancelled

This commit is contained in:
Eric Warmenhoven 2024-10-21 17:46:29 -04:00 committed by GitHub
parent 7975c0e84d
commit 7b575132c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,6 +265,9 @@ else ifneq (,$(findstring ios,$(platform)))
MINVERSION = -miphoneos-version-min=5.0 MINVERSION = -miphoneos-version-min=5.0
endif endif
PLATFORM_DEFINES += $(MINVERSION) PLATFORM_DEFINES += $(MINVERSION)
CFLAGS += $(MINVERSION)
CXXFLAGS += $(MINVERSION)
LDFLAGS += $(MINVERSION)
# tvOS # tvOS
else ifeq ($(platform), tvos-arm64) else ifeq ($(platform), tvos-arm64)
@ -281,6 +284,11 @@ else ifeq ($(platform), tvos-arm64)
CC = cc -arch arm64 -isysroot $(IOSSDK) CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK) CXX = c++ -arch arm64 -isysroot $(IOSSDK)
MAX_ROM_SIZE = 33554432 MAX_ROM_SIZE = 33554432
MINVERSION = -mappletvos-version-min=11.0
PLATFORM_DEFINES += $(MINVERSION)
CFLAGS += $(MINVERSION)
CXXFLAGS += $(MINVERSION)
LDFLAGS += $(MINVERSION)
# Theos # Theos
else ifeq ($(platform), theos_ios) else ifeq ($(platform), theos_ios)