ios/tvos: properly set min supported version (#148)

This commit is contained in:
Eric Warmenhoven 2024-10-21 17:38:40 -04:00 committed by GitHub
parent 6fd07d90ac
commit dc116e51af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,6 +243,7 @@ else
MINVERSION = -miphoneos-version-min=5.0
endif
PLATFORM_DEFINES := $(MINVERSION)
LDFLAGS += $(MINVERSION)
ifeq ($(platform),ios-arm64)
PLATFORM_DEFINES += -D_IOS_ARM64
@ -258,6 +259,9 @@ else ifeq ($(platform), tvos-arm64)
PLATFORM_DEFINES += -D_IOS_ARM64
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
MINVERSION = -mappletvos-version-min=11.0
PLATFORM_DEFINES := $(MINVERSION)
LDFLAGS += $(MINVERSION)
# Theos
else ifeq ($(platform), theos_ios)