Skip to content

Commit a103a21

Browse files
authored
ios/tvos: properly set min supported version (#60)
1 parent 0e48a89 commit a103a21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile.libretro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ else ifneq (,$(findstring ios,$(platform)))
136136
MINVERSION = -miphoneos-version-min=5.0
137137
endif
138138
CFLAGS += $(MINVERSION)
139+
CXXLAGS += $(MINVERSION)
140+
LDFLAGS += $(MINVERSION)
139141
# Raspberry Pi
140142
else ifneq (,$(findstring rpi,$(platform)))
141143
TARGET := $(TARGET_NAME)_libretro.so
@@ -171,6 +173,10 @@ else ifeq ($(platform), tvos-arm64)
171173

172174
CC = cc -arch arm64 -isysroot $(IOSSDK)
173175
CXX = clang++ -arch arm64 -isysroot $(IOSSDK)
176+
MINVERSION = -mappletvos-version-min=11.0
177+
CFLAGS += $(MINVERSION)
178+
CXXLAGS += $(MINVERSION)
179+
LDFLAGS += $(MINVERSION)
174180

175181
# Theos iOS
176182
else ifeq ($(platform), theos_ios)

0 commit comments

Comments
 (0)