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

This commit is contained in:
Eric Warmenhoven 2024-10-21 11:30:52 -04:00 committed by GitHub
parent 62ca90a784
commit 50f69d82fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -138,7 +138,9 @@ else ifneq (,$(findstring ios,$(platform)))
else
MINVERSION = -miphoneos-version-min=5.0
endif
CFLAGS += $(MINVERSION)
CXXFLAGS += $(MINVERSION)
LDFLAGS += $(MINVERSION)
# tvOS
else ifeq ($(platform), tvos-arm64)
@ -155,6 +157,10 @@ else ifeq ($(platform), tvos-arm64)
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
MINVERSION = -mappletvos-version-min=11.0
CFLAGS += $(MINVERSION)
CXXFLAGS += $(MINVERSION)
LDFLAGS += $(MINVERSION)
# Nintendo Switch (libnx)
else ifeq ($(platform), libnx)