ios/tvos: properly set min supported version

This commit is contained in:
Eric Warmenhoven 2024-10-15 15:30:42 -04:00
parent a5918ab61c
commit 01a8ffd92f

View File

@ -82,6 +82,7 @@ else ifneq (,$(findstring ios,$(platform)))
MINVERSION = -miphoneos-version-min=5.0
endif
PLATFORM_DEFINES += $(MINVERSION)
LDFLAGS += $(MINVERSION)
# tvOS
else ifeq ($(platform), tvos-arm64)
@ -97,6 +98,9 @@ else ifeq ($(platform), tvos-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)