Skip to content

Commit 97c3d5e

Browse files
authored
Use -platform_version flag during linking instead of the deprecated and now removed) -ios_simulator_version_min (#970)
1 parent 4d6bc9a commit 97c3d5e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

kivy_ios/tools/liblink

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,23 @@ ld = environ.get('ARM_LD')
8484
arch = environ.get('ARCH', 'arm64')
8585
sdk = environ.get('PLATFORM_SDK', 'iphoneos')
8686
if sdk == 'iphoneos':
87-
min_version_flag = '-ios_version_min'
87+
platform_version_name = 'ios'
8888
elif sdk == 'iphonesimulator':
89-
min_version_flag = '-ios_simulator_version_min'
89+
platform_version_name = 'ios-simulator'
9090
else:
9191
raise ValueError("Unsupported SDK: {}".format(sdk))
92-
call = [ld, '-r', '-o', output + '.o', min_version_flag, '9.0', '-arch', arch]
92+
call = [
93+
ld,
94+
"-r",
95+
"-o",
96+
output + ".o",
97+
"-platform_version",
98+
platform_version_name,
99+
"9.0",
100+
"9.0",
101+
"-arch",
102+
arch,
103+
]
93104
call += objects
94105
print("Linking: {}".format(" ".join(call)))
95106
subprocess.call(call)

0 commit comments

Comments
 (0)